You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A guide on how to install everything you need, and how to compile your first program using BlitzMax and VS Code
Tl;dr version
Install BlitzMax NG and VS Code
Open or create a .bmx file in VS Code (Open file / Open folder are both okay) Ctrl + P > ext install Hezkore.blitzmax
Press one of the quick build buttons in the corner, or F5 for a quick debug build run
Remember that the initial compile time might be long, as the BlitzMax modules hasn't been compile yet
You can cut down on compile time by setting a framework
Frameworkbrl.standardio
Print "Hello World"
When opening .bmx files, you might be notified that VS Code has an extension for .bmx files
It's okay to follow this notification, it will install the same extension
Use the BlitzMax view to the left (rocket icon) to configure your build options
Double click any option in the list to toggle it on or off
The Legacy Mode build option enables build support for BlitzMax Vanilla/Legacy
Hover over the other options with your mouse for a quick explanation
Remember that pressing F5 is the VS Code shortcut to "Start Debugging", so this will always result in a debug console build
For a release build, set the proper build options and use the quick build buttons in the upper right corner when viewing any .bmx file
You can also use VS Code tasks to make your life a whole lot easier, and set up some very complex build chains
When you eventually feel ready for tasks, you can read the extensive task guide #12
You might get a notification saying "Documentation not found"
This happens when the BlitzMax modules hasn't been documented yet
You should press Yes when promoted to rebuild them
When documentation has been built, the following features will work correctly:
Hover your mouse over any known keyword or function to get useful information
Click on any known keyword or function, then press F1 for full documentation and examples
Press Ctrl + Space to trigger auto complete
Press Tab in the auto complete list to quickly insert a function or keyword, with function parameter template (press Tab again to jump to the next function parameter)
Press Ctrl + Shift + Space inside a function parameter to get symbol help
Existing BlitzMax projects
For existing BlitzMax projects, all you have to do is select File > Open Folder and select the root folder of your project
Click on the Explorer view to the left (or View > Explorer) to easily navigate your project files
This works well with the examples projects that comes with BlitzMax, as well as your own projects
To select/lock the file to build, you can right click any .bmx file and select Set As Default Build Task Source File (this option is only available for Open Folder projects or workspaces)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A guide on how to install everything you need, and how to compile your first program using BlitzMax and VS Code
Tl;dr version
Install BlitzMax NG and VS Code
Open or create a .bmx file in VS Code (Open file / Open folder are both okay)
Ctrl + P > ext install Hezkore.blitzmax
Press one of the quick build buttons in the corner, or F5 for a quick debug build run
Step by step
Print "Hello World"
in your new empty file(i.e.
c:\blitzmax\
)Hello World
at the bottom of the screen in the Debug ConsoleWhat now?
Learn how to use BlitzMax NG - https://blitzmax.org/docs/en/tutorials/beginners_guide
Learn how to use VS Code - https://code.visualstudio.com/docs/getstarted/introvideos
Remember that the initial compile time might be long, as the BlitzMax modules hasn't been compile yet
You can cut down on compile time by setting a framework
When opening .bmx files, you might be notified that VS Code has an extension for .bmx files
It's okay to follow this notification, it will install the same extension
Use the BlitzMax view to the left (rocket icon) to configure your build options
Double click any option in the list to toggle it on or off
The Legacy Mode build option enables build support for BlitzMax Vanilla/Legacy
Hover over the other options with your mouse for a quick explanation
Remember that pressing F5 is the VS Code shortcut to "Start Debugging", so this will always result in a debug console build
For a release build, set the proper build options and use the quick build buttons in the upper right corner when viewing any .bmx file
You can also use VS Code tasks to make your life a whole lot easier, and set up some very complex build chains
When you eventually feel ready for tasks, you can read the extensive task guide #12
You might get a notification saying "Documentation not found"
This happens when the BlitzMax modules hasn't been documented yet
You should press Yes when promoted to rebuild them
When documentation has been built, the following features will work correctly:
(press Tab again to jump to the next function parameter)
Existing BlitzMax projects
For existing BlitzMax projects, all you have to do is select File > Open Folder and select the root folder of your project
Click on the Explorer view to the left (or View > Explorer) to easily navigate your project files
This works well with the examples projects that comes with BlitzMax, as well as your own projects
To select/lock the file to build, you can right click any .bmx file and select Set As Default Build Task Source File
(this option is only available for Open Folder projects or workspaces)
Beta Was this translation helpful? Give feedback.
All reactions