Use external editor with live reloading
Overview​
If the built-in editor does not fit your needs and you prefer to work in Visual Studio Code (VS Code) or a similar editor, you can use any external editor to modify your code and update it automatically in Script Master. This feature is called "External editor with live reloading".
How to use external editor with live reloading​
- First, make your code file available at "http://localhost" with any kind of "Live Server" functionality (see example below).
- Then, in the Script Master editor, click the "External" button.
- Paste the link to your file with the code and click "Connect".
- The editor will become read-only and will start polling for updates every few seconds.
- Now, you can fully switch to your IDE and continue working on the script code there.
- When it is ready to be executed, switch back to Script Master and "Run" your code.
warning
All the code in the editor will be replaced by the code from your IDE.
Example of live reloading with Visual Studio Code​
- Open a project with the file you would like to connect to the Script Master editor in Visual Studio Code.
- Make it available on "localhost". You can use any extension to make this possible; one recommended extension is https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer.
- Now follow the steps from "How to use external editor with live reloading".