Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>P2CE VScript SupportNew to Visual Studio Code? Get it now.
P2CE VScript Support

P2CE VScript Support

caiomc

|
6 installs
| (0) | Free
Language Server for P2CE VScript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Portal 2: Community Edition VScript Support

An VSCode extension made for P2CE VScript support, based on https://github.com/ocet247/tf2-vscript-support (TF2 VScript Support) extension for the language server and logic of the extension itself.

(THIS EXTENSION IS IN A VERY VERY VERY EXPERIMENTAL STATE, SO DON'T EXPECT NO BUGS OR NO CRASHES)

Features

  • Completions
    • Keywords
    • Symbols
    • String literals (like script names, netprops, attributes, etc)
    • Members of builtin types
  • Completions for documentation comments
    • Autogenerated comment for variables and functions
    • Tags
    • Types
    • Parameter names (for @param)
  • Hover
  • Go to definition
  • Go to type definition
  • Find references
  • Rename
  • Semantic tokens
  • Inlay hints
  • Signature help
  • Document symbols
  • Document link for imports
  • Workspace symbol
  • Selection range

Diagnostics

  • Syntax checking
  • Type checking for operations and function call arguments
  • Unused local variables
  • Unreachable code

Additional

  • String literal name resolution
  • Type inference for both variables and functions
  • Documentation comments with simple types
  • Import resolution from IncludeScript
  • Standard library symbols included from both Squirrel and VScript

TODO

  • Implement custom entities (AngelScript) in the string literals
  • Custom ConVars & ConCommands in string literal
  • Game Events signatures (like 'OnPlayerUse')
  • Formatting
  • Completions and validation for models/sounds/assets

Credits

  • TF2 VScript Support Language Server Extension https://github.com/ocet247/tf2-vscript-support (VisualStudio Marketplace)
  • Valve Development Community for VScript function signatures and documentation https://developer.valvesoftware.com/wiki/VScript
  • Parts of LSP handling from rust-analyzer and auto-lsp
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft