Cobalt2 Theme for VS Code
- Open Extensions sidebar panel in VS Code.
View → Extensions
- Search for
Cobalt2 - find the one by Wes Bos - there are a few other half-baked ones so make sure you have the right one!
- Click Install to install it.
- Click Reload to reload the your editor
- Code > Preferences > Color Theme > Cobalt2
- Optional: Use the recommended settings below for best experience
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
// Very important: Install this plugin: https://github.com/be5invis/vscode-custom-css
// you'll need to change this to an absolute path on your computer
Some things in VS code can't be controlled by settings, but you can install this plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my root called
~/.vscodestyles.css and then put this everything in cobalt2-custom-hacks.css into your file.
Once done, open your command palette and select enable custom CSS and JS
Finally reload your editor and the Custom CSS should be taking. You can test this by typing into file - the dirty circle should be yellow not white.
This is a bit weird, but to get some sort of live feedback for when editing a theme. Please let me know if you have a saner way of doing it
- Open this repo in your terminal and type
- Start to watch for change on the repo with
npm start - this runs a nodemon task for you and will automatically recompile any changes
- Open this repo in VS Code
- Open your command palette and hit type VSIX. Select the one that says **Extensions: Install from VSIX...`
- Load the VSIX file that was created a few steps back
- Set your editor to use this Cobalt2 theme - it might help to change the name in package.json to something like "Cobalt2 Dev" so you can differentiate from the Cobalt2 you've installed from the marketplace. If you get confused, just delete all traces of Cobalt2 and then load the VSIX.
- Go to the debug sidebar
View → Debug
- Press the green arrow beside "Launch Extension"
- This will then open a second window.
- Make a change, and then hit the refresh button on your debug toolbar - this is in your first editor - not the one that poped open.
- Wait a sec, your changes should now be reflected!
Whew. Again, if you have an easier way to style these things, let me know!
I don't like something
First, this theme is new so if something is funky, please open an issue.
These are the things we have control over. If you would like to change something, you can either open a PR and see if I'd like it added, or override the colours in your own settings.json file.
Put Cobalt2 in other places!
Thanks to Roberto Achar for doing much of the initial porting to VS Code.