| TF2 cfg syntax highlightingAdds syntax highlighting support for .cfgfiles Features
   Example config
 
  
    |  |  |  
    | Plain Text | Using the Monokai Protheme |  Used grammar
string.quoted.double.cfgUsed in say, echo & exec.variable.other.readwrite.cfgNormal text, alias commands, unrecognized commands.constant
.numericConVar constants, numbers..other.keyMOUSE1,SPACE,F3
Commentssupport
.function
.cfg.toggleAction commands:+attack2,-jump,+use_action_slot_item..cfg.argumentArgument action commands:wait 3,taunt_by_name Taunt: Schaudenfreunde,addcond 91..cfg.triggerTrigger action commands:kill,mp_forcewin,voice_menu1..variable
.cfgConsole commands:mat_picmip,sv_cheats,sensitivity..cfg.addonAddon commands:prec_mode.invalid.deprecated.cfgDeprecated commands and actions:g_ragdoll_fadespeed,god,mat_parallaxmap. Install
  Download VS Code
    Install the extension  
    Press reload   Setup  
Open a .cfgfileClick at the bottom right to change its "File Association" (Or press Ctrl+K, Ctrl+M)Select, Configure File Association for '.cfg'...Select TF2 cfgfrom the list Alternatively...You can open your user settings (Ctrl+,) and add "files.associations": {
  "*.cfg": "TF2 cfg"
}
 ThemeNote that you can change/control the Color Theme:   Known Issues
My regex has not been reviewed and there's potentially a smarter way to be doing some of the thingsIdeally there'd be a custom color theme with property scope names (currently I'm using at least one .jsname) Release Notesv0.0.8
Improved regular expression.
Added matches for all Team Fortress 2 commands.Improved syntax highlighting for strings and command chains.Shortened regex.Improved syntax highlighting for themes. v0.0.7
Renamed the settings rule to commands.Fixed bind and unbind key regular expression.Added regular expression for set*commands.Created a pattern for echo stringsFixed partial variable rule matches inside strings.Added several more matches for TF2, P-REC, and HLAE commands. v0.0.6
Improved regular expression UnlicenseThis is free is all senses of the word. UNLICENSE |  |