This extension is made to make DarkBASIC development easier on Visual Studio Code.
You are going to need a separate DarkBASIC executable (DB.exe) if you want to compile and execute the code directly from Visual Studio Code.
npm requirements to build from source
vscode-debugadapter : version 1.41.0
[WIP] Syntax highlight for DarkBASIC For now, only comments and if and for keywords are highlighted.
Auto-generated tasks.json and launch.json to compile and execute DBA source code with an external compiler
If you want to use the external DB.exe compiler :
After opening your DB project with VSCode, press Ctrl+Shift+P then research the command "Generate DarkBASIC Configuration Files".
Point to your DB.exe compiler executable in the next dialog.
Point to your main .DBA source file in the next dialog. This is the file that will be executed as an entry point of your DarkBASIC project. Press 'cancel' to use the current viewed DBA file as the entry point.
You will be able to compile your code using Ctrl+Shift+B and/or directly execute using F5 or Ctrl+F5
Missing keywords highlight
Not tested with DarkBASICPro, only classic
First release :
Basic syntax highlight for DarkBASIC : comments, if and for keywords