Enable Light Mode: Step-by-Step Guide for Visual Studio Code

Are you tired of squinting at your code in the dark? Would you like to switch to a brighter, more vibrant theme in Visual Studio Code? Enabling the light mode in Visual Studio Code (VSCode) can significantly improve your coding experience. Let's guide you through the simple process of turning on light mode in VSCode.

10 Best Visual Studio Code Light Themes - Super Dev Resources
10 Best Visual Studio Code Light Themes - Super Dev Resources

Before we dive into the steps, let's clarify why you might want to switch to light mode. Light mode provides a stark contrast between the text and the background, which can help reduce eye strain during long coding sessions. It's especially useful in well-lit environments. Now, let's get started!

a man with glasses is sitting in front of a microphone and holding a cup that says visual studio code setup part 1
a man with glasses is sitting in front of a microphone and holding a cup that says visual studio code setup part 1

Changing Color Theme

akon !( you can easily change the color theme in VSCode to light mode. This is done through the user interface of the application. No need todig into the settings.json file!

Mehdi @ Kuartz (@stoitec) on X
Mehdi @ Kuartz (@stoitec) on X

Before you proceed, make sure you are in the main workspace of VSCode. The light mode change will apply to all files if you do it from here.

Accessing the Color Theme Settings

Visual Studio Code Tutorial for Beginners - Introduction
Visual Studio Code Tutorial for Beginners - Introduction

First, let's find the Color Theme settings. You can do this by following these steps:

  • Click on the 'File' menu in the menu bar at the top of your screen.
  • Hover over the 'Preferences' option. A sub-menu will appear.
  • Click on 'Color Theme'.

Selecting the Light Color Theme

X
X

Now that you've accessed the Color Theme settings, let's select a light theme:

  • In the 'Color Theme' drop-down menu, you'll see a list of themes. Some of them will have a small sun icon next to them, indicating they are light themes.
  • Choose one that you like. The color theme will change instantly, and you can see the preview in the editor.

Adjusting Text Color and Background

Visual Studio Code tips and tricks
Visual Studio Code tips and tricks

If you want even more control over the light mode, you can adjust the text color and background color specifically. This is done through the 'WORKBENCH' color theme settings.

Please note that not all themes support high contrast or invert, and the colors you choose might not be compliant with the theme you have selected. It's best to experiment with different themes to find what works best for you.

an image of a black background with white squares on it and the words visual tutor written below
an image of a black background with white squares on it and the words visual tutor written below
a person in a hoodie using a cell phone with red light coming from the screen
a person in a hoodie using a cell phone with red light coming from the screen
lighting tut vc: rem_rem_555
lighting tut vc: rem_rem_555
Easy How To Make Perfect Lighting Set-ups For Videos Educational TikTok
Easy How To Make Perfect Lighting Set-ups For Videos Educational TikTok
Туториал радуга в фигме
Туториал радуга в фигме
Blog | Dark Mode vs Light Mode UX: Best Practices, Tokens, Toggles, and Accessibility
Blog | Dark Mode vs Light Mode UX: Best Practices, Tokens, Toggles, and Accessibility
an app that shows the time and date for different things
an app that shows the time and date for different things
9. How to create BILLING SYSTEM in C#? (Designing Login Form for Billing System in Visual Studio)
9. How to create BILLING SYSTEM in C#? (Designing Login Form for Billing System in Visual Studio)
an iphone screen with the text final result on it, in front of a purple background
an iphone screen with the text final result on it, in front of a purple background

Modifying the Text Color

To change the text color:

  1. Click on 'File' and then 'Preferences' and 'Settings'.
  2. In the search bar, type 'WORKBENCH'. In the settings list that appears, click on 'WORKBENCH {ery} settings'.
  3. In the 'settings.json' file that opens, find or add the 'editor.tokenColorCustomizations' option. Here, you can configure the color of different programming language keywords, strings, comments, etc.

Modifying the Background Color

To change the background color:

  1. Follow the same steps as above to access the 'settings.json' file.
  2. Find or add the 'workbench.colorCustomizations' option. Here, you can configure the color of the background, sidebar, etc.

The final tutoring brush on your light mode setup is exploring the different color themes available in VSCode. Experiment with different themes to find the one that offers the best contrast and is most pleasing to your eyes.