Author: Armitxes
Author Website: https://github.com/Armitxes/VSCode_SQF

Requirements: Visual Studio Code

Version: 0.5.8

Short description: Microsoft Visual Studio Code is a new, but already very known Code Editor.

Date: 2016-12-04 11:05
Submitted by: Armitxes


Comments: (3)
Rating:



 



Visual Studio Code - SQF Plugin

by
Armitxes


Description:
Microsoft Visual Studio Code is a new, but already very known Code Editor. For those who don't know VS Code, it's pretty much like Sublime Text.
Today I wrote a SQF Plugin for VS Code, there isn't any documentation about Plugins released yet as VS Code is in a preview state - means you can expect much more features to come but may also encounter some bugs (haven't found any).

Works on Linux, OS X and Windows.


Features:
IntelliSense
SQF HighLighting
Autocomplete for control structures
All from https://code.visualstudio.com/Docs, including full git support.
All Arma 2 & Arma 3 commands, including BIS functions
.hpp Support for Dialog and Overlay editing


Installation / Usage:
Visual Studio Code - Information & Download: https://code.visualstudio.com/
GitHub Project: https://github.com/Armitxes/VSCode_SQF
Windows (only) Installer: -> Download from the bottom of the page <- if you use the installer, make sure that you have the latest version of VS Code installed and closed!
SQF Plugin Download (master.zip, manual install for Windows, MAC & Linux): https://github.com/Armitxes/VSCode_SQF/archive/master.zip

Manual installation:
Use this guide if you the installer doesn't work or if you are running Linux/Mac.
There is no Plug-in or Package Manager yet so we must do this the old-school way ;)
Download VS Code & the master.zip
Install Visual Studio Code
Navigate to your VS Code plugin Folder:
Windows: %USERPROFILE%\.vscode\extensions
Mac/Linux: $HOME/.vscode/extensions
In the plugins folder, you create a folder called sqf, if you have it already delete all files inside!
Inside the sqf folder you then unzip the master.zip:
Windows: %USERPROFILE%\.vscode\extensions/sqf
Mac/Linux: $HOME/.vscode/extensions/sqf
That's it, now simply (re-)start Visual Studio Code (or just "Code") and it's done :)
With VS Code, every folder is a project! To open your SQF Project simply go on File->Open Folder and choose your mission/mod folder.

I will update this as soon as a plugin or package manager is existent.


Future plans:
IntelliSense improvements
BIS function support


Notes:
Feel free to ask any questions, aswell the GitHub Project is open for everyone to contribute!

If some parts of your code aren't highlighted, then you may look over it again using the Wiki - the highlighter can become strict at some points to encourage a clean code.

Everyone is now welcome to contribute, the project is open! Simply send me a PM with your GitHub E-Mail Address or Account name.


Changelog:
v0.5.8
Added commads for v1.64, v1.66 & latest dev
"this, _this, _x, _forEachIndex, _exception, _thisScript, _thisFSM, thisList, thisTrigger". case-insensitivity supported and conditional parameter highlighting fixed.

v0.5.6
Fixed "Syntax highlighting broken at some point" for your very large SQF files [ Issue #14 ]
Fixed "Boolean values being highlighted as commands" [ Issue #12 ]
Fixed an issue with compile, compileFinal, exec, execFSM, execVM & callExtension commands.

v0.5.4 released by 6265296?v=3&s=40 Armitxes
Added commands of A3: v1.56, v1.58, v 1.60, v1.62 & Dev Branch

v0.5
Case insensitive commands [ Issue #7 ]
Highlighting (alternative color) for _local, public variables [ Issue #9 ]
Added new A3 v1.54 scripting commands
Removed highlighting for brackets (not needed, too disturbing)
Few marketplace adjustments
Improved code logic

v0.3.4
Fixed escapes in string
Fixed a weird issue where code snippets weren't suggested
Added this project to the marketplace and the VS gallery (yay!) -https://marketplace.visualstudio.com/items/Armitxes.sqf

v0.3
Now compatible with new VS Code version
Added a windows installer
Fixed forEach loop and a minor bug with compileFinal
Fixed a bug where there highlighter wasn't working properly with Tabulators in a few cases.
Added all new SQF commands from the v1.5 releases
Drastically reduced the extension size ( 57 kb )
The plugin is now a valid npm package to support new VS Code features

v0.2
Remade the project from scratch for easier contribution
Improved IntelliSense
Added BIS functions
Autocomplete for control structures
Contents of strings and comments will no longer be suggested
Added all operators. Operators are now highlighted in a light grey color
Functions are now separately recognized and highlighted.
Fixed an annoying bug where VS Code failed to tokenize the code / input.
Fixed several minor bugs.

v0.1
- first release


Forum topic:
- BI forums



- Visual Studio Code




Enable javascript to be able to download from Armaholic please!



Tags: No tags