Visual Studio Code: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This page describes how to set-up Visual Studio Code (VSCode) for [[VScript]] purposes. | This page describes how to set-up Visual Studio Code (VSCode) for [[VScript]] purposes. | ||
== | == Usage == | ||
=== {{sq}} Squirrel === | === {{sq}} Squirrel === | ||
Line 30: | Line 29: | ||
* [[VScript]] | * [[VScript]] | ||
* {{sq}} [[Squirrel]] | * {{sq}} [[Squirrel]] | ||
== External links == | |||
* [https://code.visualstudio.com/ Visual Studio Code] | |||
[[Category:Visual Studio Code]] | |||
[[Category:VScript]] |
Revision as of 08:21, 11 July 2023
This page describes how to set-up Visual Studio Code (VSCode) for VScript purposes.
Usage
Squirrel
Click on the Extensions button in VSCode. This is represented as a icon of building blocks, usually on the left side of the window.
Search for "Squirrel" in the search bar. Install the following extensions:
- Squirrel Language Supports (by marcinbar)
- Squirrel Language Linter (by marcinbar)
Restart VSCode. Now the language is ready for use in the editor!
Autocomplete
For Team Fortress 2, auto-completion of the game's built-in script functions and constants is also available.
To install, press Ctrl + Shift + P in VSCode.
Search for "Configure User Snippets" and click on the command, then search for "squirrel" and click on it. You should have a "squirrel.json" window open at this point.
Replace the contents of this window with the text here.

Save the file, and now VSCode will provide autocomplete for your scripts!
See Also
- Original thread for
script auto-complete: https://tf2maps.net/threads/autocompleting-tf2-vscript-in-vscode.48453/
- VScript
Squirrel