4DScript Syntax Highlighting in Visual Studio Code

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
User avatar
KoenHav
Posts: 1
Joined: Monday 26 August, 2024 - 13:49

4DScript Syntax Highlighting in Visual Studio Code

Post by KoenHav »

Hello! I'm one of the software developers at InControl. As you may have seen, there is a syntax highlighting plugin for Notepad++. Internally there was a desire for 4DScript syntax highlighting in Visual Studio Code too. So I decided to surprise my colleagues and take a little time to create one! One of my colleagues suggested I post it here, so here I am.

First, download and extract the zip file attached to this post. This should give you the extension as a .vsix file. Next, you can install it in one of two different ways:
  • Open the command palette (Ctrl+Shift+P) and select "Extensions: Install from VSIX...". Then, select the downloaded .vsix file and it should be installed.
  • Open the Extensions page in the activity bar (Ctrl+Shift+X). Then select the three dots "..." in the top-right of the extensions page, and select "Install from VSIX...". Select the downloaded .vsix file and it should be installed.
Once you have it installed, it should automatically recognize 4DScript files by the following extensions: *.4ds, *.mod, *.atm, *.lbx, *.lbrx.
It provides syntax highlighting, follows your configured theme, and allows for code folding (collapse functions spanning multiple lines).

If you have any feedback / suggestions, let me know. I hope you find this extension useful!
Attachments
4dscript-syntax-highlighting-0.1.0.vsix.zip
(4.25 KiB) Downloaded 177 times
Post Reply