Switch to Light Mode in VSCode: Update Your Theme

Are you tired of squinting at your screen while coding in Visual Studio Code (VSCode)? Switching to light mode can significantly improve your coding experience, especially in well-lit environments. Here's a step-by-step guide on how to change your VSCode theme to light mode.

VS Code Shortcuts Every Beginner Programmer Should Know
VS Code Shortcuts Every Beginner Programmer Should Know

Before we dive into the process, ensure that you have the latest version of VSCode installed. You can check for updates by clicking on the gear icon (Help & Feedback) in the command palette (Ctrl+Shift+P).

60+ VSCode themes you definitely need to try (dark + light)
60+ VSCode themes you definitely need to try (dark + light)

Changing the Color Theme

The first step is to change the overall color theme of your VSCode interface. VSCode offers a variety of built-in themes, and some third-party themes even support light and dark modes.

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

To change your color theme, open the Command Palette by pressing Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P (Mac). Then, type 'Color Theme' and select 'Color Theme: Set Color Theme'. A list of available themes will appear. Select 'Light+' or any other light theme you prefer.

Customizing the Editor ColorScheme

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

Changing the color theme only affects the VSCode interface, not your code editor. To make your code appear in light mode as well, you need to customize the editor's color scheme.

Again, open the Command Palette and type 'Color Theme'. This time, select 'Color Theme: Edit theme colors'. In the JSON file that opens, look for the 'editor' section. Here, you can change variables like 'foreground', 'activityBackground', and 'selectionBackground' to lighten the color scheme.

Adjusting the Background Color

Radical - Visual Studio Marketplace
Radical - Visual Studio Marketplace

If you find the default white background too harsh on your eyes, you can adjust it to a lighter shade. In the same JSON file, look for the 'workbench' section. Change the 'panelBackground' and 'sideBarBackground' colors to your preference. You can use HEX values or VSCode's color variable names.

changing the fonts

Dark text on a light background can sometimes look a bit too stark. Adjusting the font and improving its readability can help address this issue.

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

In VSCode, you can change the font by opening the Settings (File > Preferences > Settings or press Ctrl+,). In the search bar, type 'font' and change the 'fontFamily' value to a lighter font like 'Consolas' or 'Source Code Pro'. You can also adjust the 'letterSpacing' and 'fontWeight' values for better readability.

Using a Light Fontligth Theme

10 Best Visual Studio Code Light Themes - Super Dev Resources
10 Best Visual Studio Code Light Themes - Super Dev Resources
7 Must Have VS code Extension To boost your productivity
7 Must Have VS code Extension To boost your productivity
VS Code Themes
VS Code Themes
an open laptop computer sitting on top of a desk
an open laptop computer sitting on top of a desk
GitHub - liqube/liqube-dark-vscode: Liqube Dark Code Theme for VSCode
GitHub - liqube/liqube-dark-vscode: Liqube Dark Code Theme for VSCode
Best VS Code themes: Installation guide included - Tabnine
Best VS Code themes: Installation guide included - Tabnine
the underrated vs code theme is displayed in this screenshot
the underrated vs code theme is displayed in this screenshot
VS Code Themes You Should Try
VS Code Themes You Should Try
the visual studio code is shown in this screenshote screen shot, with text below it
the visual studio code is shown in this screenshote screen shot, with text below it

For an all-in-one solution, consider using a light font ligature theme. Font ligatures improve code readability by replacing common letter combinations with a single glyph. Popular light themes with font ligatures include 'GitHub Light' and 'Visual Studio Light'. You can install these themes via the Extensions view (Ctrl+Shift+X).

To switch to these themes, open the Command Palette, type 'Color Theme', and select 'Color Theme: Set Color Theme'. Then, choose your preferred light font ligature theme.

And there you have it! Your VSCode environment should now be in light mode, making it easier on your eyes and more enjoyable to use. Happy coding!