


This makes the generator globally available on your machine (meaning you can now create a theme in any directory). Now that you’ve got that under your belt, here are the steps you need to start work.įirst, you need to run: npm install -g yo generator-code I know it looks like a lot, but it takes anywhere from 5-10 minutes, and then you’ll never have to do it again, for any extension you create. All of the instructions to do so are here. Fire It Upīefore you do anything, you’re going to install vsce (short for Visual Studio Code Extensions) and establish yourself as a publisher. We’ll talk first about the general process for creating a theme in case you’d like to create one of your own, and then we’ll dive into some of the research and testing that went into mine in particular to peek into the process. I decided it was time to craft my own theme. I had some preferences set for the theme I had been using and, though they all worked well for daytime or plane rides, I always felt like something was missing for late night coding sessions. I know it’s not necessarily healthy to code like this, but it’s literally the time I’m most productive: there are minimal distractions, I’m not dealing with work stuff, family stuff, friend stuff, or puppy stuff. Everyone in my house was sleeping and so, as usual, the only light was the glow of my screen. I was coding very late the one night, well into the small hours of the morning. It’s been an item on my bucket list to create my own theme. There are literally thousands of themes out there, and for good reason: a thing of beauty and enhancement to productivity for one can be a hindrance to another. Everyone has special and perhaps, particular, tastes when it comes to their code editor.
