PxPlus Visual Studio Code Extension
The PxPlus Visual Studio Code extension is an extension for Visual Studio Code to enable working with PxPlus programs.
⚠️ Important: A PxPlus 2024 or newer that is properly activated with any license type is required.
Functionality
- Create new PxPlus programs
- Opening and editing existing PxPlus programs
- Working with binary PxPlus programs
- Working with text-based PxPlus programs
- PxPlus syntax highlighting
- PxPlus program error diagnostics
- Current document-based Auto Complete
How To Setup
Before you can use the PxPlus Visual Studio Code extension, you must tell the extension where PxPlus is installed.
⚠️ Important: A PxPlus 2024 or newer that is properly activated with any license type is required.
Open the Visual Studio Code settings by clicking the Gear button in the bottom left corner and then click Settings.
Expand the Extensions node and then expand the PxPlus node.
Under PxPlus Path, enter the path to the directory where the PxPlus executable is located (i.e. C:\PVX Plus Technologies\PxPlus 2024).
If you plan to work with text-based PxPlus programs, then you also need to specify which file extensions Visual Studio Code should consider a text-based PxPlus program.
- Under Text Program File Extensions, you can add a file extension to the list by clicking the Add Item button and entering a .xxx file extension and clicking OK. You can repeat this step multiple times to add more then one file extension. By default the only extension on the list is .pxprg.
For more details on these settings click Here.
Using the Extension
With the extension set up, you can now work with PxPlus programs. You can create new PxPlus programs, as well as open and edit existing PxPlus programs.
To Create New PxPlus Programs:
From the File menu or from the Welcome screen, select New File. You can also right click in the Explorer and select Create New PxPlus Program.
A list of possible file types to create will display. From the list, select Create a PxPlus Program.
Use the Save dialog to choose a pathname for your new program.
To Edit Existing PxPlus Programs:
To start editing PxPlus programs, you first need to add a PxPlus folder to the workspace. This is initiated by using one of the following methods:
- Click on the PxPlus icon on the top right of an Edit window.
- Click the Open PxPlus Folder button in the Explorer window when no folders are open.
- Click the Add PxPlus Folder to Workspace... menu item from the Explorer right click menu.
This will allow you to select a PxPlus folder to add to the workspace.
Any PxPlus programs or text-based PxPlus programs that are opened via this workspace will be recognized as a PxPlus program by Visual Studio Code. This enables all the features and allows PxPlus programs to be edited.
Settings
Setting |
Description |
Default |
Pxplus Path |
Specify the path to the directory where the PxPlus executable is located (i.e. C:\PVX Plus Technologies\PxPlus 2024). |
|
Text Program File Extensions |
Specify which file extensions Visual Studio Code should consider a text-based PxPlus program. - You can add new extensions via the Add Item button - Edit existing extensions via the pencil icon beside the item. - Delete extensions via the X icon besdie the item. |
.pxprg |
Max Number Of Problems |
Controls the maximum number of problems reported for PxPlus programs. |
100 |
Lowercase Directives |
Displays the code with lowercase directives. |
off |
Lowercase Variables |
Displays the code with lowercase variables. |
off |
Mixed Case Variables |
Displays the code with mixed case variables. |
on |
Suppress LET |
Displays the code without LET directives. |
off |