A development of VS Code Theme
Introduction
This is a note for creating VS code theme. Hopefully it will fasten the process and reduce the time needed to debug.
This tutorial is pretty good too: https://youtu.be/pGzssFNtWXw
Steps
1 Generate boilder plate
https://www.npmjs.com/package/generator-code
follow it to get started
2 Find the appropriate color scheme
We will use two tools here:Ctrl+Shift+P
to inspect editor token and scopes
and
https://themes.vscode.one/
The inspect editor and scopes panel:
![[Pasted image 20221220174200.png]]
3. The json code editing
1 | { |
“colors” are for editor colors, and tokenColors are for syntax. Use the name of the scope and assign color to them. You can group them and bind to a name category too.
4. Publish
Create a personal access token to let command line take care of publishment
![[Pasted image 20221220191152.png]]
https://marketplace.visualstudio.com/manage/createpublisher use this link to create publisher, an account could have multiple publisher.
In the package.json, config the following information - name of theme, description, version, publisher name that you created and github repo link etc
1 | "name": "eva-unit-01-theme", |
run
vsce login [publisher name]
enter token
run vsce publish [major/minor/patch]