On Win10, delete the â.txtâ filetype, open VSCode, click on the Extensions icon to open the Extensions pane, then click on the 3 dots in the upper right corner of the pane and select âInstall from VSIXâ, then select the gpscript vsix file.
EDIT: When I paste a GPScript copied from the User scripts subforum, Iâm getting no highlighting at all. [sigh]
Sorry to hear you are having issues. VS Code seems to be smart enough to detect the language even of a pasted in bit of code. It certainly does for me with GP Script, JavaScript and Ruby. Iâm not a VS Code and I wasnât expecting it to do that but itâs cool that it does.
Can you try either selecting GP Script from the list at the bottom right of the screen? Or saving it as a file with the extension .gpscript?
Does that work?
Did you restart the VS Code first?
That should kick in the syntax highlighting for you.
Once I selected GPScript as the language, the syntax highlighting worked great. I shouldnât be trying new things before sunrise. Thanks. At least I can now confirm that VS Code doesnât read minds.
Download the extension and remove .txt from the end
From the same directory as the extension run: code --install-extension gpscript-4.7.0.vsix
Restart VS Code
On Mac you can also simply drag and drop the renamed vsix file to the Extensions panel within VS Code.
On Windows you can probably delete the â.txtâ filetype, open VSCode, click on the Extensions icon to open the Extensions pane, then click on the 3 dots in the upper right corner of the pane and select âInstall from VSIXâ, then select the renamed vsix file.
If you have any issues or suggestions let me know!
Download the extension and remove .txt from the end
From the same directory as the extension run: code --install-extension gpscript-4.8.2.vsix
Restart VS Code
On Mac you can also simply drag and drop the renamed vsix file to the Extensions panel within VS Code.
On Windows you should be able to delete the â.txtâ filetype, open VSCode, click on the Extensions icon to open the Extensions pane, then click on the 3 dots in the upper right corner of the pane and select âInstall from VSIXâ, then select the renamed vsix file.
If you have any issues or suggestions let me know!
For a clean install of VS Code, do I need to install the v4.7.0 file first, and then the v4.8.2 file? The v4.7.0 file is 55 KB, and the v4.8.2 file is only 9 KB.