SQF Syntax Highlighting and Enhancement Features for Bohemia Interactive Simulations' VBS3
- Syntax highlighting
- Autocomplete for commands and functions
- Snippets for autoformating code blocks for common functions
- e.g.
while,waitUntil, anddiagMessage
- e.g.
- Search shortcuts for the BIS Wiki, Developers Reference, and VBS Forums
- Color picker that returns VBS compatible values (Modification of ColorPicker by Weslly)
Using Package Control (Recommended)
For all Sublime Text 2/3 users we recommend install via Package Control.
- Install Package Control if you haven't yet.
- Use
Ctrl+Shift+PthenPackage Control: Install Package - Look for
SQF for VBS3and install it.
- Click the
Preferences > Browse Packages…menu - Browse up a folder and then into the
Installed Packages/folder - Download zip package rename it to
SQF-VBS3.sublime-packageand copy it into theInstalled Packages/directory - Restart Sublime Text
- As you type out a command that has a snippet created for it, you will see it as an autocomplete option.
- If you hit
Enterwith the snippet option highlighted, the rest of the code will be filled in. - Once the code has been added, you can hit
Tabto move to each of the key input areas for that command/code block
- You can search various development resources by highlighting a word, and then either right-clicking and selecting the resource you want to search from the context menu, or by pressing the corresponding keyboard shortcut.
- You can retrive a formated color value from a color picker GUI by either right-clicking and selecting
Color Picker - VBS Formatfrom the context menu, or by pressing the corresponding keyboard shortcut. - The color will be returned in R,B,G format, with each value being calculated within a range of 0-1
- Search VBS3 Wiki
Ctrl+Shift+F1Ctrl+Shift+'
- Search VBS3 Developers Reference
Ctrl+Shift+F2
- Search VBS Forums
Ctrl+Shift+F3
- Open Color Picker
Ctrl+Shift+C
- You can open the VBS3_64.RPT file without having to navigate to the proper folder by going to
Tools -> VBS Resources -> Open VBS RPT File- Any errors that you see show up in VBS should be near the bottom of this file
- Any bugs about SQF for VBS3 please feel free to report here.
- And you are welcome to fork and submit pullrequests.
