Visual Studio Code Extension
Description
Notes is not particularly well suited as a code editor, so an extension for Visual Studio Code is available.
Download Visual Studio Code (VS Code) from Microsoft: https://code.visualstudio.com/download?_exp_download=fb315fc982
Install the Engine Script extension in VS Code via File -> Preferences -> Extensions. Then click the three dots next to "EXTENSION", select "Install from VSIX", and install one of the VSIX files from the distribution package.
Afterwards, add the Engine folder for VS Code as a trusted folder.
Windows:
%LOCALAPPDATA%\SLNet\API-Engine\VSCode
macOS:
~/Library/Application Support/HCL Notes Data/SLNet/API-Engine/VSCode
(On macOS, the Library folder is often hidden in Finder. In the selection dialog, the path can be entered directly using Cmd + Shift + G.)
At the top of an Engine Script document in the APICTRL database, the two buttons "Open in VS Code" and "Get back from VS Code" are available in edit mode.
Using the first button, "Open in VS Code", the Engine Script from this document can be transferred to VS Code, edited there, saved, and then retrieved back into the document using the second button, "Get back from VS Code".
The document is then closed again automatically.
Before using "Get back from VS Code", the file must always be saved in VS Code.
The "Get back from VS Code" button completely replaces the contents of the Engine Script field with the contents of the file in the VS Code working folder.
Unsaved changes in other fields of the open Notes document may be lost in the process.
If something goes wrong, the Engine Script will still be available in the respective folder; it is not deleted automatically.
However, the next time the "Open in VS Code" button is used in the same Engine Script document, on the same client, any older version of this Engine Script that may still exist in this folder will be overwritten.
Screenshot showing the relevant buttons from the Engine Script document:
Note : This text was machine-translated and may contain inaccuracies.
