ObjectiveThe aim of Simplificy is to simplify the work of project developers at Efficy by adding to VSCode some shortcuts and commands related to Efficy. SetupThis extension has been designed to work with at most one custom folder and one standard Efficy folder in your VSCode workspace. In order for this extension to work as expected, always start by opening your custom folder in an empty workspace. Features1. Autocompletion
Type Efficy. to see all of the methods available. Switch between parameters by pressing the Tab key. This functionality is built upon a foundational snippet made by Gaëtan Warin and has been improved and expanded for Simplificy. 2.1 Add Standard Efficy Folder
Right Click on VSCode's explorer to see the command Efficy Enterprise > Add Standard Folder. This shortcut will automatically search for the matching standard Efficy folder to add to your Workspace. If you do not have a custom Efficy folder in your workspace before using this command, an error message will be displayed: 2.2 Add Standard Lib Folder
Right Click on VSCode's explorer to see the command Efficy Enterprise > Add Lib Folder. This shortcut will automatically search for the matching standard Efficy folder to add to your Workspace. If you do not have a custom Efficy folder in your workspace before using this command, an error message will be displayed. 3. Reveal Standard File
Right-click on a file from your custom Efficy folder and select the command Efficy Enterprise > Reveal Standard File. This command will automatically open in a new tab the Standard file according to your custom folder version. It works with every kind of file not only macros You can also trigger this command with the keyboard shortcut Ctrl+Alt+F: This shortcut will use the currently opened file to find the Standard one. If the file is not found in Efficy standard, an error message is displayed: 4. Search In Standard
Right-click on a text selection from your custom code and select the command: Efficy Enterprise > Search in Standard Folder. This command will search for the current selection text in the Efficy standard folder only. In order to use this command, you will need to add a standard Efficy folder to your workspace via the Efficy Enterprise > Add Standard Folder command. Otherwise, the following error will be displayed: 5. Customize File
Right-click on a file from your standard Efficy folder and select the command: Efficy Enterprise > Customize File. This command will check if you already customized the selected standard file. If so, it will open your custom file. Otherwise, it will create the file and its missing folder structure. 6. Install ProjUtils
Right-click on your file explorer from VSCode and select the command: Efficy Enterprise > Adders > Install ProjUtils > Basic Package / Designer Plugin. This command will automatically download the corresponding ProjUtil into your custom folder and install it. 7. Format SQL
Right-click on your SQL expression from your text editor and select the command: Efficy Enterprise > Format SQL. This command will format your SQL statement to a ready-to-use variable that will keep your statement's syntax indentation. Run this command one more time to get your SQL statement back. 8. Macro Syntax Coloration
Open a macro file to notice syntax coloration. Credits to Stefan Vucinic for originally making this snippet. 9. Settings
File > Preferences > Settings > Extensions > Simplificy Future features coming
Enjoy! |