This extension provides rich syntax highlighting and development tools for PureBasic (.pb, .pbi) in Visual Studio Code.
- Syntax Highlighting: Comprehensive coloring for PureBasic keywords, strings, comments, and constants.
- Run: Quickly run your code without debugging using
Ctrl+F5. - Debug: Launch the external PureBasic Debugger seamlessly with
F5. - Build: Compile your code into an executable.
- Auto-Discovery: Automatically finds the PureBasic compiler (
pbcompiler) in standard installation locations.
- PureBasic Installed: You must have PureBasic installed on your system.
- Compiler Path: If the extension cannot find
pbcompilerautomatically, you may need to configure the path.
- Install the Extension.
- Open a PureBasic file (
.pb). - Run or Debug:
- Press
F5to Start Debugging (launches code with the/DEBUGGERflag, opening the PureBasic standalone debugger). - Press
Ctrl+F5to Run Without Debugging.
- Press
- Build:
- Open the Command Palette (
Ctrl+Shift+P). - Type
PureBasic: Build Executableto compile your code into an.exefile.
- Open the Command Palette (
If your PureBasic installation is in a custom location, add the following to your VS Code settings.json:
{
"purebasic.compilerPath": "C:\\MyCustomPath\\PureBasic\\Compilers\\pbcompiler.exe"
}- The extension relies on the external PureBasic debugger window; it does not currently integrate into the VS Code debug pane variables/watch window.
- Initial release with syntax highlighting, run, and debug support.
To build the extension from source:
- Clone the repository:
git clone https://github.com/duty1g/vscode-purebasic.git cd vscode-purebasic - Install dependencies:
npm install
- Package the extension:
This will generate a
npm run package
.vsixfile in thedist/folder.
PureBasic Syntax Highlighter for VS Code is licensed under the MIT License. Made with 🖤 by @duty1g