Skip to content

smugller/cfg-syntax-highlighting

Repository files navigation

Overwiew

This extension add support for .cfg files in Visual Studio Code and making a beautiful syntax highlighting for Valve games like CS:GO or Team Fortress 2 etc.

Features

Before After
CS:GO .cfg file without syntax highlighting CS:GO .cfg file with syntax highlighting
Plain Text CFG
My custom VSCode theme without extension My custom VSCode theme with extension.

Installation

Just install extension from Visual Studio Marketplace and enjoy! It's working only with .cfg file extensions!

Test if everything is working

With this extensions I will add the examples folder, so you can test this plugin on your computer. Just open file autoexec.cfg from directory $HOME/.vscode/extensions/cs-go-syntax-highlighter-pro/examples/autoexec.cfg and Select Language Mode in VSCode or Configure File Association for '.cfg' ... files.

Customize your config

How to get all latest cvars from source engine?

Maybe you didn't know, but it's almost 5000 commands and cvars in CS:GO. This is really huge list that should be sorted with a modern way!

Here yo have plugin to reveal all console variables/commands that are marked as hidden/development-only. It's nice to check time to time for deprecated or new cvar commands.

Source: csgo-cvar-unhide

Ready to view all cvar commands directly from GitHub (check the date and time, because I'm not guaranteed that these repo will be always updated). You can easily look for all CS:GO cvars alongside ones marked as hidden/development-only. Repo is contributed by ArminC.

Source: ArminC-CSGO-Cvars

CS:GO Client Config

Here are the best client config that I found on the whole internet. But, be careful what are you copying and paste.

ArminC's configuration for CS:GO Client - well documented, analysed and no misconceptions:

Source: ArminC-AutoExec

More Information

Games Supported

  • CS:GO
  • Team Fortress 2
  • Other based on .cfg files (but not tested)

Known Issues

  • No known issues

Release Notes

v1.0.0

  • Initial release

Contact

If you have any ideas or questions please contact with me somehow.