I made my own VS Code theme in less than an hour, here’s how?

In this blog post, I’m gonna tell you how you can make your own vs code theme extension according to your color preference in less than an hour.

Prerequisites:

Know the color combination on your head you want!. ?

Let’s go!! ?

F…

In this blog post, I’m gonna tell you how you can make your own vs code theme extension according to your color preference in less than an hour.



Prerequisites:

  • Know the color combination on your head you want!. ?

Let’s go!! ?



First of all,

Open your vs code and then your terminal. Go to the path where you want to setup your code base by cd [YOUR_PATH].

First things first you’ll need to have Node.js and Git installed in order to be able to install the necessary packages.

Open a Terminal and guide to the directory where you want to create your theme, and run the following command:

npm install -g yo generator-code

Using npm install yo (yes, that’s the real package name — short for Yeoman)

yo code

This will run the Visual Studio Code Extension (VSCE) generator.
a.PNG

To make a fresh color theme, you need to follow these steps by navigation using the up-and-down arrow keys and press enter to make a selection.

  1. Select New Color Theme
  2. Select No, start fresh
  3. Enter the name of your extension
  4. Enter your extension identifier (ex. of what an identifier is: [publisher-name or author], just press enter and use the default)
  5. Write a short description of what the theme represents or what the idea behind the theme is.
  6. Enter the name (case sensitive) as you want it to appear in the marketplace (This is the extension display name)
  7. Select a base theme to be used as a starting point

You have successfully created a theme project! Now run the following commands to open it and to start working!

cd [theme-name] && code .

you have successfully completed the setup process ?

Now,

you will find a pre-built JSON file having different properties responsible for different coloring for vs code, all you need is to code that JSON file according to your choice.

… Wait,

It’s so frustrating and time taking to browse all coloring properties in code and implementing the exact what’s on Your Mind?

I have a Shortcut for that, you can skip all that lengthy steps, and make your Extension ready to launch within an hour ?

Here is How? :

Open your search engine and Go to or Click Theme Studio for VS Code

And Follow These Steps:

  1. Create New Theme

Untitled Diagram.png

  1. Start Designing your own theme.
    Screenshot (155).png

How to Export theme after you are done, publish it publicly and start using it in your VS Code FOLLOW my next Blog.?

Here is my VS Code theme Link: https://marketplace.visualstudio.com/items?itemName=GauravSinha.greencloud

Happy Theming!✨


Print Share Comment Cite Upload Translate
APA
Gaurav Sinha | Sciencx (2024-03-28T13:35:27+00:00) » I made my own VS Code theme in less than an hour, here’s how?. Retrieved from https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/.
MLA
" » I made my own VS Code theme in less than an hour, here’s how?." Gaurav Sinha | Sciencx - Sunday June 27, 2021, https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/
HARVARD
Gaurav Sinha | Sciencx Sunday June 27, 2021 » I made my own VS Code theme in less than an hour, here’s how?., viewed 2024-03-28T13:35:27+00:00,<https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/>
VANCOUVER
Gaurav Sinha | Sciencx - » I made my own VS Code theme in less than an hour, here’s how?. [Internet]. [Accessed 2024-03-28T13:35:27+00:00]. Available from: https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/
CHICAGO
" » I made my own VS Code theme in less than an hour, here’s how?." Gaurav Sinha | Sciencx - Accessed 2024-03-28T13:35:27+00:00. https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/
IEEE
" » I made my own VS Code theme in less than an hour, here’s how?." Gaurav Sinha | Sciencx [Online]. Available: https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/. [Accessed: 2024-03-28T13:35:27+00:00]
rf:citation
» I made my own VS Code theme in less than an hour, here’s how? | Gaurav Sinha | Sciencx | https://www.scien.cx/2021/06/27/i-made-my-own-vs-code-theme-in-less-than-an-hour-heres-how/ | 2024-03-28T13:35:27+00:00
https://github.com/addpipe/simple-recorderjs-demo