<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jesse Oluwapelumi ADESINA </title>
    <description>The latest articles on Forem by Jesse Oluwapelumi ADESINA  (@jeolad).</description>
    <link>https://forem.com/jeolad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1174847%2F5e0eafdc-09f2-405a-9462-332971a138d5.jpeg</url>
      <title>Forem: Jesse Oluwapelumi ADESINA </title>
      <link>https://forem.com/jeolad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jeolad"/>
    <language>en</language>
    <item>
      <title>Create Custom Colour Themes on VSCode</title>
      <dc:creator>Jesse Oluwapelumi ADESINA </dc:creator>
      <pubDate>Wed, 04 Oct 2023 20:31:57 +0000</pubDate>
      <link>https://forem.com/jeolad/create-custom-colour-themes-on-vscode-1i2j</link>
      <guid>https://forem.com/jeolad/create-custom-colour-themes-on-vscode-1i2j</guid>
      <description>&lt;p&gt;It’s crucial to feel comfortable in your personal space, and the same applies to your coding environment. Customizing your coding space (VSCode) is key to ensuring maximum comfort while working.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhyxz1x0hgfyafoe7j6og.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhyxz1x0hgfyafoe7j6og.png" alt="EclipseRed Extension"&gt;&lt;/a&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=AdesinaJesse.eclipseRed" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This piece will take you through the steps to create your VSCode color theme. Enjoy!&lt;/p&gt;

&lt;p&gt;To create your VSCode color theme, there are a few steps you need to follow. First and foremost, it is crucial to have &lt;a href="https://nodejs.org/en" rel="noopener noreferrer"&gt;&lt;strong&gt;Node.js&lt;/strong&gt;&lt;/a&gt; and &lt;a href="https://git-scm.com/downloads" rel="noopener noreferrer"&gt;&lt;strong&gt;Git&lt;/strong&gt;&lt;/a&gt; nstalled on your computer. Without these, you won't be able to install the necessary packages. So, make sure to have them installed before proceeding. Once you have them installed, you can start with the process of creating your VSCode color theme. Let's dive into it and get started! 🚀&lt;/p&gt;

&lt;p&gt;Install the Yeoman (yo) generator using &lt;strong&gt;npm&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g yo generator-code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installing the Yeoman generator globally on your computer will make it available to all Node.js applications and scripts. However, if you are using a Mac, you may encounter root access issues that could cause the installation to fail. In such cases, you can use the following code to fix the issue: simply run it and enter your password when prompted. After that, you should be good to go!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo npm install -g yo generator-code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Navigate to the directory where your theme would be created via the terminal and run the code below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yo code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you followed the previous steps correctly, then this should work without any issues. If you encounter any problems related to 'command yo not found', it could be due to a failed or incorrect installation of the Yeoman generator.&lt;br&gt;
Assuming everything is working properly, the Visual Studio Code Extension (vsce) generator should be up and running. You can navigate this section using the up and down arrow keys.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffv1fsmpijttqurzhgdjv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffv1fsmpijttqurzhgdjv.png" alt="Terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, follow these steps&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;New Colour Theme&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select &lt;strong&gt;No, start fresh&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Give a &lt;strong&gt;name&lt;/strong&gt; to your extension&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter the &lt;strong&gt;identifier&lt;/strong&gt; of your extension, that is the &lt;strong&gt;name of the publisher&lt;/strong&gt;. You can click enter to use the default value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Describe your extension. It could be what it means or the inspiration behind it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Give a &lt;strong&gt;display name&lt;/strong&gt; to your extension. This is the name the users at the Visual Studio marketplace will see.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select the &lt;strong&gt;Base theme&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You can then choose to initialize a Git repository if you're yet to create one.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At this point, you have successfully created your project. Navigate to the directory of your project using&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd &amp;lt;extension-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run the code below to open your project on VSCode&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;code .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When inside your project file, you will find a &lt;strong&gt;themes&lt;/strong&gt; folder with a JSON file containing the themes, open the file, run the debugger, and start customizing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh6pxih6qu1mo58664a0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh6pxih6qu1mo58664a0l.png" alt="-color-theme.json"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To have more control over your theme and its options, you can refer to the &lt;a href="https://code.visualstudio.com/api/references/theme-color" rel="noopener noreferrer"&gt;&lt;strong&gt;VSCode Theme Colour&lt;/strong&gt;&lt;/a&gt; reference and further customize your theme file.&lt;/p&gt;

&lt;p&gt;Once you've finished customizing, it's recommended to edit your package.json file by adding a license (MIT), publisher, icon, author (name and email; you may also include your LinkedIn profile), and repository (type and URL).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F39un4xpprb6vseob74cf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F39un4xpprb6vseob74cf.png" alt="package.json file"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can then push your project to your GitHub repository.&lt;br&gt;
To publish your just-created theme, run the code below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install vsce -g
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When done with the installation, proceed to &lt;a href="https://dev.azure.com/" rel="noopener noreferrer"&gt;&lt;strong&gt;Azure&lt;/strong&gt;&lt;/a&gt; to create an organization under which your extension will be published. On the Azure DevOps page, sign up by clicking &lt;strong&gt;Start Free&lt;/strong&gt;. To set it up faster you can &lt;strong&gt;Start free with GitHub&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After you've created your organization, you'll need a &lt;strong&gt;Personal Access Token&lt;/strong&gt; for your organization. Make sure to select &lt;strong&gt;All Accessible Organizations&lt;/strong&gt; and &lt;strong&gt;Full Access&lt;/strong&gt; when creating your Personal Access Token.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F80apfjxo173htcukvsdx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F80apfjxo173htcukvsdx.png" alt="Personal Access Token"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsasynhxtfg2xm3vxdokw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsasynhxtfg2xm3vxdokw.png" alt="All accessible organisations and full access "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should copy and store your Personal Access Token in a secure location because it will eventually become hidden on the Azure DevOps page.&lt;/p&gt;

&lt;p&gt;Once you have completed the steps above, you will need to create a &lt;a href="https://marketplace.visualstudio.com/manage/createpublisher" rel="noopener noreferrer"&gt;&lt;strong&gt;Publisher&lt;/strong&gt;&lt;/a&gt; on VSCode Marketplace. Fill in the necessary details, then log in to your Publisher account via the terminal using the code below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vsce login &amp;lt;publisher-name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upon successful login, package and publish your newly created theme using the codes below respectively&lt;br&gt;
&lt;br&gt;
 &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vsce package
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vsce publish
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Congratulations! You have successfully created your own VSCode color theme in just a few minutes. Your theme is now ready to go live on the VSCode Marketplace. Thank you for reading this article and following the instructions. I hope you found this guide helpful. If you enjoyed this article, please support me by liking and sharing it. You can also connect with me on &lt;a href="https://www.linkedin.com/in/jesse-adesina-7b891b179/" rel="noopener noreferrer"&gt;&lt;strong&gt;LinkedIn&lt;/strong&gt;&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Thank you 🥂&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>extensions</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
