Skip to content

MrXANA91/DarkBASIC-VSCode

Repository files navigation

DarkBASIC-VSCode

This extension is made to make DarkBASIC development easier on Visual Studio Code.

Requirements

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

Features

  • [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

Extension Settings

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

Known Issues

  • Missing keywords highlight
  • Debug session won't stop automatically after exiting the executable
  • Not working with DarkBASIC Pro (only tested with DarkBASIC Classic v1.09B)

Release Notes

0.1.0

First release :

  • Basic syntax highlight for DarkBASIC : comments, if and for keywords
  • Auto-generated tasks.json and launch.json