An extension for VS Code which provides support for the Programming Language for Business (PL/B).
This extension supports the Sunbelt Computer Software version of the PL/B language.
Supports:
- Syntax highlighting
- Code Folding
- Code snippets
- On the bottom-right corner, click on the select language mode button, if you have created a new file it should display Plain Text
- Select PLB in the list of languages.
Alternatively, saving the file with a .pls, .plbs, or .dbs extension, will allow VS Code to understand that it is a PL/B file, and automatically select the language correctly.
- Bring-up the autocomplete menu by hitting the
Ctrl+Shiftkey combination - Select the snippet that you want to use in the list
- Use
tabto navigate trough the snippet's variables
The default file format is UTF8, and you might want to change this for PL/B. To do this just:
-
Click on 'Programming Language for Business' at the right side of the bottom status bar
-
Select: Configure 'Programming Language for Business' language settings. This should bring up the settings.json file for editing.
-
Find and click on files.encoding
-
Select the new default encoding such as windows1252 or CP437 (DOS). The settings.json file will now have the following section:
"[plb]": { "files.encoding": "windows1252", },
-
Save and close the settings.json file.
