Syntax highlighting and more for about 40 programming languages and file formats taken from Visual Studio Code.
TextMate grammars and language configurations taken from Visual Studio Code and provided as a plugin based on Eclipse tm4e for the Eclipse IDE.
| Language/Format | File Associations | Source |
|---|---|---|
| ASP.NET Razor | file-extensions="cshtml, razor" | 1.106.0@microsoft/vscode [upstream] |
| Batch File |
file-extensions="bat, cmd" | 1.106.0@microsoft/vscode [upstream] |
| BibTeX | file-extensions="bib" | 1.106.0@microsoft/vscode [upstream] |
| C | file-extensions="c, i" | 1.106.0@microsoft/vscode [upstream] |
| C# | file-extensions="cake, cs, csx" | 1.106.0@microsoft/vscode [upstream] |
| C++ | file-extensions="c++, c++m, cc, ccm, cpp, cppm, cxx, cxxm, h, h++, h.in, hh, hpp, hpp.in, hxx, ii, inl, ino, ipp, ixx, tpp, txx" | 1.106.0@microsoft/vscode [upstream] |
| Clojure |
file-extensions="clj, cljc, cljs, cljx, clojure, edn" | 1.106.0@microsoft/vscode [upstream] |
| Code Snippets | file-extensions="code-snippets" file-patterns="**/User/profiles/*/snippets/*.json, **/User/snippets/*.json, **/snippets*.json" |
1.106.0@microsoft/vscode [upstream] |
| CoffeeScript |
file-extensions="coffee, cson, iced" | 1.106.0@microsoft/vscode [upstream] |
| CSS | file-extensions="css" | 1.106.0@microsoft/vscode [upstream] |
| CUDA C++ | file-extensions="cu, cuh" | 1.106.0@microsoft/vscode [upstream] |
| Dart | file-extensions="dart" | 1.106.0@microsoft/vscode [upstream] |
| Diff | file-extensions="diff, patch, rej" | 1.106.0@microsoft/vscode [upstream] |
| Docker | file-extensions="containerfile, dockerfile" file-names="Containerfile, Dockerfile" file-patterns="Containerfile.*, Dockerfile.*" |
1.106.0@microsoft/vscode [upstream] |
| Dotenv | file-extensions="env" file-names=".env, .flaskenv, user-dirs.dirs" file-patterns=".env.*" |
1.106.0@microsoft/vscode [upstream] |
| F# | file-extensions="fs, fsi, fsscript, fsx" | 1.106.0@microsoft/vscode [upstream] |
| Git Commit Message |
file-names="COMMIT_EDITMSG, MERGE_MSG" | 1.106.0@microsoft/vscode [upstream] |
| Git Ignore |
file-extensions="git-blame-ignore-revs, gitignore, gitignore_global" file-names=".gitignore" |
1.106.0@microsoft/vscode |
| Git Rebase Message |
file-names="git-rebase-todo" file-patterns="**/rebase-merge/done" |
1.106.0@microsoft/vscode [upstream] |
| Go | file-extensions="go" | 1.106.0@microsoft/vscode [upstream] |
| Groovy | file-extensions="gradle, groovy, gvy, jenkinsfile, nf" file-names="Jenkinsfile" file-patterns="Jenkinsfile*" |
1.106.0@microsoft/vscode [upstream] |
| Handlebars | file-extensions="handlebars, hbs, hjs" | 1.106.0@microsoft/vscode [upstream] |
| HLSL (High-Level Shader Language) | file-extensions="cginc, compute, fx, fxh, hlsl, hlsli, psh, vsh" | 1.106.0@microsoft/vscode [upstream] |
| HTML | file-extensions="asp, aspx, ejs, htm, html, jshtm, jsp, mdoc, rhtml, shtml, volt, xht, xhtml" | 1.106.0@microsoft/vscode [upstream] |
| INI Config File | file-extensions="ini" | 1.106.0@microsoft/vscode [upstream] |
| Java |
file-extensions="jav, java" | 1.106.0@microsoft/vscode [upstream] |
| JavaScript | file-extensions="cjs, es6, js, mjs, pac" file-names="jakefile" |
1.106.0@microsoft/vscode [upstream] |
| JavaScript JSX | file-extensions="jsx" | 1.106.0@microsoft/vscode [upstream] |
| JSON | file-extensions="bowerrc, css.map, geojson, har, ipynb, js.map, jscsrc, jslintrc, json, jsonld, ts.map, vuerc, webmanifest" file-names=".watchmanconfig, composer.lock" |
1.106.0@microsoft/vscode [upstream] |
| JSON Lines | file-extensions="jsonl, ndjson" | 1.106.0@microsoft/vscode [upstream] |
| JSON with Comments | file-extensions="babelrc, eslintrc, eslintrc.json, hintrc, jsfmtrc, jshintrc, jsonc, swcrc, toolset.jsonc" file-names=".babelrc.json, .ember-cli, babel.config.json, bun.lock, typedoc.json" |
1.106.0@microsoft/vscode [upstream] |
| Julia | file-extensions="jl" | 1.106.0@microsoft/vscode [upstream] |
| LaTeX | file-extensions="ctx, ltx, tex" | 1.106.0@microsoft/vscode [upstream] |
| Less | file-extensions="less" | 1.106.0@microsoft/vscode [upstream] |
| Lua | file-extensions="lua" | 1.106.0@microsoft/vscode [upstream] |
| Makefile | file-extensions="mak, mk" file-names="GNUmakefile, Makefile, OCamlMakefile, makefile" |
1.106.0@microsoft/vscode [upstream] |
| Markdown |
file-extensions="markdn, markdown, md, mdown, mdtext, mdtxt, mdwn, mkd, workbook" | 1.106.0@microsoft/vscode [upstream] |
| MS SQL | file-extensions="dsql, sql" | 1.106.0@microsoft/vscode [upstream] |
| Objective-C | file-extensions="m" | 1.106.0@microsoft/vscode [upstream] |
| Objective-C++ | file-extensions="mm" | 1.106.0@microsoft/vscode [upstream] |
| Perl | file-extensions="PL, pl, pm, pod, psgi, t" | 1.106.0@microsoft/vscode [upstream] |
| PHP | file-extensions="ctp, php, php4, php5, phtml" | 1.106.0@microsoft/vscode [upstream] |
| PowerShell | file-extensions="ps1, psd1, psm1, psrc, pssc" | 1.106.0@microsoft/vscode [upstream] |
| Pug | file-extensions="jade, pug" | 1.106.0@microsoft/vscode [upstream] |
| Python | file-extensions="cpy, gyp, gypi, ipy, py, pyi, pyt, pyw, rpy" file-names="SConscript, SConstruct" |
1.106.0@microsoft/vscode [upstream] |
| R | file-extensions="r, rhistory, rprofile, rt" | 1.106.0@microsoft/vscode [upstream] |
| Raku (Perl 6) | file-extensions="nqp, p6, pl6, pm6, raku, rakudoc, rakumod, rakutest" | 1.106.0@microsoft/vscode [upstream] |
| reStructuredText | file-extensions="rst" | 1.106.0@microsoft/vscode [upstream] |
| Ruby | file-extensions="erb, gemspec, podspec, rake, rb, rbi, rbx, rjs, ru" file-names="appfile, appraisals, berksfile, berksfile.lock, brewfile, capfile, cheffile, dangerfile, deliverfile, fastfile, gemfile, guardfile, gymfile, hobofile, matchfile, podfile, puppetfile, rakefile, rantfile, scanfile, snapfile, thorfile, vagrantfile" |
1.106.0@microsoft/vscode [upstream] |
| Rust |
file-extensions="rs" | 1.106.0@microsoft/vscode [upstream] |
| SCSS | file-extensions="scss" | 1.106.0@microsoft/vscode [upstream] |
| ShaderLab | file-extensions="shader" | 1.106.0@microsoft/vscode [upstream] |
| Shell Script | file-extensions="Xsession, bash, bash_aliases, bash_login, bash_logout, bash_profile, bashrc, csh, cshrc, ebuild, eclass, fish, ksh, profile, sh, tcshrc, xprofile, xsession, xsessionrc, yash_profile, yashrc, zlogin, zlogout, zprofile, zsh, zsh-theme, zshenv, zshrc" file-names=".envrc, .hushlogin, APKBUILD, PKGBUILD, bashrc_Apple_Terminal, zlogin, zlogout, zprofile, zshenv, zshrc, zshrc_Apple_Terminal" |
1.106.0@microsoft/vscode [upstream] |
| Swift | file-extensions="swift" | 1.106.0@microsoft/vscode [upstream] |
| TeX | file-extensions="bbx, cbx, cls, sty" | 1.106.0@microsoft/vscode [upstream] |
| TypeScript | file-extensions="cts, mts, ts" | 1.106.0@microsoft/vscode [upstream] |
| TypeScript JSX | file-extensions="tsx" | 1.106.0@microsoft/vscode [upstream] |
| Visual Basic | file-extensions="bas, brs, vb, vba, vbs" | 1.106.0@microsoft/vscode [upstream] |
| VS Code Search Result |
file-extensions="code-search" | 1.106.0@microsoft/vscode |
| XML |
file-extensions="ascx, atom, axaml, axml, bpmn, cpt, csl, csproj, csproj.user, dita, ditamap, dtd, dtml, ent, fsproj, fxml, iml, isml, jmx, launch, menu, mod, mxml, nuspec, opml, owl, proj, props, pt, publishsettings, pubxml, pubxml.user, rbxlx, rbxmx, rdf, rng, rss, shproj, slnx, storyboard, svg, targets, tld, tmx, vbproj, vbproj.user, vcxproj, vcxproj.filters, wsdl, wxi, wxl, wxs, xaml, xbl, xib, xlf, xliff, xml, xoml, xpdl, xsd, xul" | 1.106.0@microsoft/vscode [upstream] |
| XSL |
file-extensions="xsl, xslt" | 1.106.0@microsoft/vscode [upstream] |
| YAML | file-extensions="cff, eyaml, eyml, winget, yaml, yaml-tmlanguage, yaml-tmpreferences, yaml-tmtheme, yml" | 1.96.1@microsoft/vscode [upstream] |
To update the grammar files do:
-
Update version value under
sources/vscode-extensions/github/refsetting inupdater/updater-config.yamlto the desired value. -
Run
updater/run.shorupdater/run.cmd$ updater/run.sh Launching... Loading [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\updater\updater-config.yaml]... -> 1 source repos defined Syntaxes Folder: [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\syntaxes] Source Repos Cache Dir: [C:\Users\User1\AppData\Local\Temp\syntax-repos] Loading [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\updater\updater-state.yaml]... ================================================================== [1/1] Processing [vscode-extensions] (VSCodeMultiExtensionsSource) ================================================================== Sparse checkout [https://github.com/microsoft/vscode]... Locating valid VSCode grammar extensions... Validating extension overrides... ================================================================== [1/49] Processing [bat] (VSCodeSingleExtensionSource) ================================================================== Validating language configuration overrides...OK Copying file [bat.tmLanguage.json]... OK -> 19288 bytes Copying file [bat.language-configuration.json]... OK -> 484 bytes ================================================================== [2/49] Processing [clojure] (VSCodeSingleExtensionSource) ================================================================== Copying file [clojure.tmLanguage.json]... OK -> 9632 bytes Copying file [clojure.language-configuration.json]... OK -> 373 bytes ... Saving state to [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\updater\updater-state.yaml] ================================================================== Updating [plugin.xml]... ================================================================== Rendering entry [bat/bat]... Rendering entry [clojure/clojure]... ... Saving [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\plugin.xml]... ================================================================== Updating [README.md.]... ================================================================== Saving [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\README.md]... ================================================================== Updating [about.html.]... ================================================================== Saving [X:\workspace\tm4e\org.eclipse.tm4e.language_pack\about.html]... ======================================================== **DONE** ========================================================