CSGO cfg syntax highlighting
Adds syntax highlighting support for .cfg files
Features
autoexec.cfg from my config config
|
|
Plain Text |
Using the CSGO .cfg syntax highlighting |
This is the grammar I'm tagging:
- Comment
- Command
- Unknown (deprecated, unused, or just unknown)
- Buttons/Keys (
SPACE , MOUSE1 )
- Actions (
+attack , say_team )
- Settings (
alias , bind , net_graph , etc)
- Numeric-Literal
- Variable (custom commands)
- Macros (
"+jump; +duck; +attack;" )
- Punctuation-Semicolon
Install
- Download VS Code
-
Install the extension
Setup
- Open a
.cfg file
- Click at the bottom right to change its "File Association" (Or press
Ctrl+K, Ctrl+M )
- Select,
Configure CSGO cfg language based settings...
Or open your user settings (Ctrl+, ) and add
"files.associations": {
"*.cfg": "CSGO cfg"
}
Known Issues
- Not all commands have been included yet
- Lazy regex checking, such as
r_\\w+ to mark anything that starts with r_ , but really should only include exact commands
- My regex has not been reviewed and there's potentially a smarter way to be doing some of the things
- Ideally there'd be a custom color theme with property scope names (currently I'm using at least one
.js name)
Release Notes
v0.0.2
v0.0.1
| |