ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

SQF for VBS3

by zahngol ST2/ST3

SQF Syntax Highlighting and Enhancement Features for VBS3

Details

Installs

  • Total 846
  • Win 789
  • OS X 32
  • Linux 25
Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4
Windows 0 0 0 0 0 1 3 2 2 0 0 1 1 1 0 1 0 0 1 1 0 0 2 1 0 2 1 0 1 1 0 0 0 0 1 0 0 2 0 1 1 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SQF for VBS3

SQF Syntax Highlighting and Enhancement Features for Bohemia Interactive Simulations' VBS3

Table of Contents

Features:

  • Syntax highlighting
  • Autocomplete for commands and functions
  • Snippets for autoformating code blocks for common functions
    • e.g. while, waitUntil, and diagMessage
  • Search shortcuts for the BIS Wiki, Developers Reference, and VBS Forums
  • Color picker that returns VBS compatible values (Modification of ColorPicker by Weslly)

Installation:

Using Package Control (Recommended)

For all Sublime Text 2/3 users we recommend install via Package Control.

  1. Install Package Control if you haven't yet.
  2. Use Ctrl+Shift+P then Package Control: Install Package
  3. Look for SQF for VBS3 and install it.

Manual Install

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/ folder
  3. Download zip package rename it to SQF-VBS3.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

Usage

Snippets

  • As you type out a command that has a snippet created for it, you will see it as an autocomplete option.
  • If you hit Enter with the snippet option highlighted, the rest of the code will be filled in.
  • Once the code has been added, you can hit Tab to move to each of the key input areas for that command/code block

VBS3 Snippets

Search Resources

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

Color Picker

  • You can retrive a formated color value from a color picker GUI by either right-clicking and selecting Color Picker - VBS Format from 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

Keyboard Shortcuts

  • Search VBS3 Wiki
    • Ctrl+Shift+F1
    • Ctrl+Shift+'
  • Search VBS3 Developers Reference
    • Ctrl+Shift+F2
  • Search VBS Forums
    • Ctrl+Shift+F3
  • Open Color Picker
    • Ctrl+Shift+C

Open Report File

  • 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

Support:

  • Any bugs about SQF for VBS3 please feel free to report here.
  • And you are welcome to fork and submit pullrequests.