Jump to content

Recommended Posts

Visual Studio Code
SQF Language v1.0.6

Lastest update: 22.10.2018

 

VSCode100.PNG

 

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

Works on Linux, OS X and Windows.
 

Now in the Visual Studio Marketplace
-> Report bugs, ask questions or make suggestions <-
 

 

Supported Products:

  • Operation Flashpoint [OFP], Operation Flashpoint: Resistance
  • ArmA, ArmA 2, ArmA 3 (DLCs & Extensions included)
  • Take On Helicopters [ToH]
  • Community Based Addons [CBA], ACE

 

 

 

Easy Installation (Recommended)

  • Download Visual Studio Code.
  • Open the Editor and click on the extension icon to your left ( VSCode_extension_icon.PNG )
  • Enter "SQF" and hit enter
  • Select "SQF Language" and click on "Install"
  • Enjoy

 

Manual Installation
Only use this guide if the installation over the extension manager and/or marketplace isn't working!

  • Download VS Code
  • Download the latest release from GitHub ( https://github.com/Armitxes/VSCode_SQF/releases )
  • Install Visual Studio Code
  • Navigate to your VS Code extension Folder.
    Windows: %USERPROFILE%\.vscode\extensions
    Mac/Linux: $HOME/.vscode/extensions
  • In the plugins folder, you create a folder called Armitxes.SQF, if you have it already delete all files inside!
  • Inside the Armitxes.SQF folder you then unzip the sources you obtained from GitHub
  • 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.


Feel free to ask any questions, aswell the Code of the GitHub Project was now simplified several times by me and is open for everyone for contribution!

 

Cheers,
Armitxes

  • Like 6
  • Thanks 1

Share this post


Link to post
Share on other sites

Wouldn't ever have thought to find a fellow Code user here...

Share this post


Link to post
Share on other sites

Thanks for that usefull language Support! Good Job!!

but....

you missed some Things like atan, atan2

things the big boys use i think u Know ;-)

would it be okay if the community works on you language pack an post there updates here ?

i think we all together could make This the best and Most used Languagepack for scripter..

because the Free Code editor is great for scripters who cant use the Visual Studio like us.

or searching for a lightweyght programm that has all features who needet.

thanks an regards

Share this post


Link to post
Share on other sites

Looking forward to see this plugin grow - I've really grown fond of Code in a very short amount of time and this just adds more reason to use it!

Share this post


Link to post
Share on other sites

Great 2 see that there is an interest :)

YFI this motivates me a lot.

I'll release a mayor update soon that will feature soon with tons of bugfixes and new features! Some stuff comming:

- Automated code completion! This will create if, while, for, etc. statements for you and help you prevent syntax errors.

- IntelliSense will distinguish between the different control structures!

- Operators will receive a light grey highlighting

- Content of strings and comments will no longer be suggested.

- BIS functions added

Please don't work on the branch for now ;)

Edited by Armitxes

Share this post


Link to post
Share on other sites

Wow, this is great!

Thanks!

I have a question. When opening an INIT.SQF that I made, I get this error message:

"ERROR The mode has failed while tokenizing the input."

It is only with one specific file I have and only the first time I open it, after starting Code.

Would my file be the problem or is it a plugin error?

Share this post


Link to post
Share on other sites
Wow, this is great!

Thanks!

I have a question. When opening an INIT.SQF that I made, I get this error message:

"ERROR The mode has failed while tokenizing the input."

It is only with one specific file I have and only the first time I open it, after starting Code.

Would my file be the problem or is it a plugin error?

It's a plugin error. It'll be fixed with the next update. Also after the update is released everyone will be allowed to contribute but first I want to make a solid base for futher changes ;)

Share this post


Link to post
Share on other sites

A new version was released with all promised features. This version works much more stable than the previous one but please consider that the plugin and the editor itself is still in Alpha.

 

New in 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.

Note: 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.

 

Download: https://github.com/Armitxes/VSCode_SQF/archive/master.zip

  • Like 1

Share this post


Link to post
Share on other sites

Hey armitxes! I want to try out your plugin but i seems I can't get intellisense/autocompletion working. Do I need to make any other adjustments than creating the folder and unzipping, that I'm unaware of? Code highlighting seems to work.

 

Edit: Looks like I just didn't get the UI of VSCode  :unsure:

Share this post


Link to post
Share on other sites

Hey armitxes! I want to try out your plugin but i seems I can't get intellisense/autocompletion working. Do I need to make any other adjustments than creating the folder and unzipping, that I'm unaware of? Code highlighting seems to work.

 

Edit: Looks like I just didn't get the UI of VSCode  :unsure:

 

CTRL + Space is also very helpful on this :)

Share this post


Link to post
Share on other sites

---- removed content because outdated ----

 

Sadly the new VS update breaks all existing plugins so you must do this. Updated my first post.

All new features, including 10 new themes (I recommend the high-contrast theme) and TFS are supported :)

 

To change the Theme press F1 and then enter " >Theme " and hit enter. Now you can switch between several themes.

 

0_8_0_colorthemes.gif

More Infos here: https://code.visualstudio.com/updates

Share this post


Link to post
Share on other sites

This is a great plugin. Thanks so much armitxes! I hope you keep adding to it as new commands come out! Also, do you know of any way that this could be incorporated into a full-fledged IDE such as VS 2013? That would absolutely make my day year decade.

 

Thanks again

 

 

EDIT:

Actually, I may have found the way...

https://www.visualstudio.com/en-us/integrate/explore/explore-vside-vsi.aspx 

 

If there's an easy way to convert what you have into something that VS 2013 could use...that would be amazing.

Share this post


Link to post
Share on other sites

And Micrsoft decided to modify the plugin system again. 

I'm working on a fix together with the next update.

 

About Visual Studio: I'm sorry to say that it's not planned / officially supported.

VS Code offers enough features itself without the heavy load of a full IDE.

I hope that VS and VS Code soon share the same plugin/extension system but at the moment the language support for Visual Studio 201X is not planned.

Share this post


Link to post
Share on other sites

Version 0.3 is now released together with a windows installer. 

Please check the first post for more details.

 

New in 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 the 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
  • Like 2

Share this post


Link to post
Share on other sites

Very good news, VS Code moves to the beta and a new version was released.

Also, this extension is now published on the gallery and marketplace so if you like it please rate ;)

 

Marketplace: https://marketplace.visualstudio.com/items/Armitxes.sqf

 

 

Easy Installation (Recommended, works on every OS)

  • Download Visual Studio Code.
  • Open the Editor and press F1.
  • Enter "ext install" and wait until it finishes loading
  • Select "Extensions: Install Extension"
  • Finally type "SQF" and select "SQF Language"
  • Enjoy

 

New in v0.3.4

At the end: Big thanks to the VSC Product Manager Mr. McBreen and his team for making this possible. You are awesome.

  • Like 1

Share this post


Link to post
Share on other sites

This is really fantastic but I'm not getting intellisense or quick suggestions as they call it unless I press CTRL - Space?
Whats the trick im missing?

Share this post


Link to post
Share on other sites

This is really fantastic but I'm not getting intellisense or quick suggestions as they call it unless I press CTRL - Space?

Whats the trick im missing?

 

It's working for me for 2-3 days. A Visual Studio Code update probably fixed it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×