Autocompleting TF2 VScript in VSCode

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
Nov2023 - see the updated repo with VSCode Extension link, now maintained by @sour dani!

Let's add some code snippets to VSCode!
  1. Ctrl+Shift+P to open command palette. Run Snippets: Configure User Snippets.
  2. Select the squirrel option.
  3. Replace the new document's text with the text here.
Make sure you've enabled a file association between Squirrel and .nut files!

Results should look like this:

VSCode autocomplete pop-up for VScript functions.
 
Last edited:

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
Oh and if anyone wants a peek at my sloppy snippet generation code: here ya go!
 

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
I've implemented the latest info from the wiki! Installation steps remain the same.
 

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
New update:
  • Fixed a missing prefix for writeblob
  • Added (unmaintained) support for Sublime Text: here's how to install.
 

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849
Updated with generous contributions from treacherousfiend [1] and talascio [2]!
 

Kube

Not the correct way to make lasagna
aa
Aug 31, 2014
1,342
1,849