Visual Studio Code: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{WIP|[[User:Equalizer5118|Equalizer5118, an idiot who cant spel]] ([[User talk:Equalizer5118|talk]]) 12:30, 25 January 2024 (PST)|2=Currently rewriting the page to actually pertain to VSCode, and not a tutorial about VScript.}}
{{WIP|[[User:Equalizer5118|Equalizer5118, an idiot who cant spel]] ([[User talk:Equalizer5118|talk]]) 12:30, 25 January 2024 (PST)|2=Currently rewriting the page to actually pertain to VSCode, and not a tutorial about VScript.}}[[File:vscode-logo.png|right|450px|Visual Studio Code's logo]]
{{for|Setting up VSCode for Vscript|[[Visual Studio Code/Setting up Visual Studio for Vscript|Setting up Visual Studio for Vscript]]}}
{{for|Setting up VSCode for Vscript|[[Visual Studio Code/Setting up Visual Studio for Vscript|Setting up Visual Studio for Vscript]]}}
This page describes how to set-up Visual Studio Code (VSCode) for [[VScript]] purposes.
{{vscode|4}} (also known shorthand as {{vscode|3.1|nt=0}}) is an {{w|IDE}} developed and maintained by {{microsoft|4}}. It boasts of built in syntax highlighting, workspaces, {{w|Windows Powershell}} integration, themes, easy-to-install extensions, IntelliSense, debugging, and ability to preview most webpage and image extensions. Being one of the most popular code editors, Visual Studio has been in development for almost 10 years, and is Open Source on Github.


== Usage ==
==Uses with Valve's works==
 
VS Code's extension marketplace has many extensions catered to Source Engine specific files. VS Code can edit any text-based Source Engine file, including [[VMT]], VDF, [[QC]], [[Vscript]], and [[VMF]] files.
=== {{sq}} 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 {{tf2|2}}, auto-completion of the game's built-in [[Team Fortress 2/Scripting/Script Functions|script functions and constants]] is also available.
 
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 "VScript" in the search bar. Install the following extension:
* TF2 VScript Snippets (by Sour Dani)
 
Restart VSCode. Functions and constants should now autocomplete!
 
=== Debugger ===
[[File:VScript Debugger.png|thumb|Demonstration of the debugger]]
This allows you to create breakpoints, step line by line, and view the state of all variables during each step.
[https://marketplace.visualstudio.com/items?itemName=LionDoge.vscript-debug Download the extension from here.]
 
== See also ==
* Original thread for {{tf2}} script auto-complete: https://tf2maps.net/threads/autocompleting-tf2-vscript-in-vscode.48453/
* [[VScript]]
* {{sq}} [[Squirrel]]


== External links ==
== External links ==
Line 38: Line 10:


[[Category:Visual Studio Code]]
[[Category:Visual Studio Code]]
[[Category:VScript]]

Revision as of 13:48, 25 January 2024

Template:WIP

Visual Studio Code's logo
For Setting up VSCode for Vscript, see Setting up Visual Studio for Vscript.

Visual Studio Code Visual Studio Code (also known shorthand as VSCode) is an Wikipedia icon IDE developed and maintained by Template:Microsoft. It boasts of built in syntax highlighting, workspaces, Wikipedia icon Windows Powershell integration, themes, easy-to-install extensions, IntelliSense, debugging, and ability to preview most webpage and image extensions. Being one of the most popular code editors, Visual Studio has been in development for almost 10 years, and is Open Source on Github.

Uses with Valve's works

VS Code's extension marketplace has many extensions catered to Source Engine specific files. VS Code can edit any text-based Source Engine file, including VMT, VDF, QC, Vscript, and VMF files.

External links