mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Theme Samples
This sample contains two example TextMate themes.
Token colorization (syntax highlighting) is based on TextMate grammars and TextMate themes. Colors are matched against one or more scopes. To learn more about scopes and how they're used, check out the theme documentation.
You can directly use .tmTheme files in your extensions or import/convert them with VS Code's extension generator yo code.
Running the sample
- Press
F5to open a new window with your extension loaded. - Open
File > Preferences > Color Themes(or ) and pickSample LightorSample Dark. - Open a file that has a language associated. The languages' configured grammar will tokenize the text and assign 'scopes' to the tokens. To examine these scopes, invoke the
Inspect TM Scopescommand from the Commmand Palette (Ctrl+Shift+PorCmd+Shift+Pon Mac) .
Make changes
- You can relaunch the extension from the debug toolbar after making changes to the files listed above.
- You can also reload (
Ctrl+RorCmd+Ron Mac) the VS Code window with your extension to load your changes.