Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Portal 2 cfg file Language SupportNew to Visual Studio Code? Get it now.
Portal 2 cfg file Language Support

Portal 2 cfg file Language Support

Koning_Chiel

|
172 installs
| (2) | Free
A syntax highlighter for the configuration files from portal 2.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

p2-cfg README

Features

This extension includes highlighting for:

  • Comments
  • Numbers
  • Strings
  • Console commands
  • Special prefixes: +, -, and $
  • Key terms like:
    • cond
    • sar_alias
    • alias
    • svar_set
    • exec
    • sar_function

Here is an example of the highlighting in action:

Example

Note: this extension does not add autocompletion or code snippets.

Requirements

This extension highlights commands from the base game and the Source Auto Record, but the mod is not required for the extension to work.

Additional Resources

  • Source Auto Record Website
  • Portal 2 Speedrun Discord

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft