¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Editing & compiling S+ in Visual Studio Code


 

Hi All,

I've got a truly humongous S+ module I'm writing to control an RGB Spectrum go28 video wall (Ugh)

While most of my S+ module run 50-200 lines, this sucker is almost 950 lines. I really need an editor that can collapse and hide functions.

A friend turned me onto "Visual Studio Code". There's an S+ module plugin that formats the code nicely and it's just what I need... except the link to the compiler fails.
when I press <ctr><alt><F12>, I get a popup that says "please open a valid .usp file". This IS a valid .usp file that compiles quite happily in the S+ editor.
The paths look file and ,usp is in the file extensions list.

So is there a trick to this? am I doing something wrong?

Any help appreciated....


 

If you're using Eric's extension (ie?), the keyboard shortcut to compile is Ctrl+Shift+B. You'll need to navigate to the extension settings as well to enable 4 series or 2 series compilation targets in addition to the default 3-series target.

Per the extension details page:?

This is a language package for programming Crestron SIMPL+ module. It has syntax highlighting, document formatting, snippets for a lot of S+ functions and code blocks, build tasks to compile your code, and a shortcut for the S+ help file. After installing the extension, please open your VSCode Settings (CTRL-Comma) and search for Splus and verify/update the file locations in there.

Use CTRL+SHIFT+B to compile your S+ code

You must enable or disable the platforms you wish to compile for in the settings. By default only 3 series is enabled.

This extension currently requires that VSCode has opened the containing folder the S+ file(s) are in. As of 0.4.2, the extension will open the folder for you when open a single file, but only if VSCode doesn't have another folder open. If you are getting No build errors found messages when building S+ files, make sure you have the opened the containing folder.

Once completing the setup steps, open the folder your .usp file is contained in (File > Open Folder ...) and then once the folder is open in VSCode, open your usp file of interest, press Ctrl+Shift+B. A dropdown will appear near the top of the VSCode window with compilation options. Use the arrow keys to select the option you want, then hit enter. If you're doing lots of development work on one module that only targets say, 4-series, you'll probably want to edit the extension settings so that only 4-series targets are enabled. That way it's the first build option selected when you press Ctrl+Shift+B.

-Scott

?

?

?