How to Enable Light Theme in VS Code

Are you tired of the dark theme in Visual Studio Code (VS Code) straining your eyes, especially during those late-night coding sessions? Would you prefer a light and bright theme for a more comfortable and productive environment? You're in the right place. Here, we'll guide you through the process of enabling the light theme in VS Code, step by step.

4 VS Code Themes Every Developer Should Try 💻
4 VS Code Themes Every Developer Should Try 💻

Before we dive into the process, let's address a common misconception. Unlike other software, VS Code doesn't have a built-in light theme. However, you can achieve a light theme-like appearance by tweaking some settings. Let's explore how.

10 vs code extensions you must know!
10 vs code extensions you must know!

Understanding the Workaround

As mentioned, VS Code doesn't natively support a light theme. However, we can create a similar effect by adjusting the color theme and settings. This workaround will give you a substantial light environment, improving your coding experience.

a woman smiling and holding her hand up to her mouth with the words va code theme
a woman smiling and holding her hand up to her mouth with the words va code theme

In this guide, we'll use the 'One Dark' theme as an example because it's popular and customizable. However, you can adapt these steps to other themes as well.

Switching to the 'One Dark' Theme

an open laptop computer sitting on top of a desk
an open laptop computer sitting on top of a desk

If you're not already using 'One Dark', let's switch to it first. VS Code makes it easy:

  • Open VS Code.
  • Press F1 to open the command palette.
  • Type Color Theme and select One Dark from the list.

The editor will now switch to the 'One Dark' theme.

the jellyfish theme is shown in purple and blue
the jellyfish theme is shown in purple and blue

Adjusting the Theme Settings

Now, let's adjust some settings to make 'One Dark' lighter:

  1. Open the VS Code settings by pressing F1 and typing Settings.
  2. Search for the Workbench Icon Theme setting and select One Dark (light). This will lighten the iconography in the sidebar and activity bar.
  3. Scroll down to the terminal.integrated.background setting and change its value to #E9F0F8. This will lighten the background color of the integrated terminal.
GitHub - hediet/vscode-debug-visualizer: An extension for VS Code that visualizes data during debugging.
GitHub - hediet/vscode-debug-visualizer: An extension for VS Code that visualizes data during debugging.

Commit these changes by clicking on the floppy disk icon or pressing Ctrl + S.

Optimizing the Editor for a Lighter Environment

10 Best Visual Studio Code Light Themes - Super Dev Resources
10 Best Visual Studio Code Light Themes - Super Dev Resources
Power Of Light v0.2 | Html CSS & Vanilla Javascript Mousemove Effects
Power Of Light v0.2 | Html CSS & Vanilla Javascript Mousemove Effects
VS Code Themes
VS Code Themes
👨‍💻 Neon Glowing Effects| Creator Aashu
👨‍💻 Neon Glowing Effects| Creator Aashu
an image of a web page with icons and buttons on the bottom right corner that says, vs code icons
an image of a web page with icons and buttons on the bottom right corner that says, vs code icons
10 Pretty Light Themes for VS Code
10 Pretty Light Themes for VS Code
tg: webguild
tg: webguild
an image of some type of computer screen with space in the background and stars above it
an image of some type of computer screen with space in the background and stars above it
3.3K views · 42 reactions | Electric Border...🧠 Source Code👇 ( https://codewithmuhilan.com/shop/1761633536555 ) Visit LightswindUI🔥 - \
3.3K views · 42 reactions | Electric Border...🧠 Source Code👇 ( https://codewithmuhilan.com/shop/1761633536555 ) Visit LightswindUI🔥 - \

Now that we've lightened the theme and settings, let's optimize the editor for a brighter environment. We'll accomplish this by adjusting the font size and using a lighter font.

Increasing Font Size

Increasing the font size makes text easier to read, especially in a lighter environment. You can adjust the font size in the settings:

  1. Press F1 to open the command palette.
  2. Type Settings, then search for the Editor Font Size setting.
  3. Increase the value to a comfortable size, such as 18 or 20.

As before, commit these changes by clicking the floppy disk icon or pressing Ctrl + S.

Using a Lighter Font

A lighter font can help reflections and contrast in a lighter environment. VS Code supports several fonts, including Cascadia Code PL, Hack, and Inconsolata. These fonts are designed for coding and have a lighter appearance.

To switch fonts:

  • Press F1 to open the command palette.
  • Type Configure Editor Font and select the font of your choice.

Don't forget to commit these changes.

Congratulations! You've successfully created a light-themed environment in VS Code. With these adjustments, your coding sessions should be more comfortable and productive. Happy coding! Now that you've mastered the light theme, why not explore other customization options? VS Code offers a wealth of settings and extensions to tailor your development experience.