How to edit code in your Windows Linux Subsystem with VS Code

Oluwatosin Olubiyi
2 min readMar 22, 2021

If you have a windows system or laptop but somehow prefer working in a Linux development environment because of the simplicity it offers.

Visit the windows store (available in windows 8 or 10) and install your preferred Linux distribution. I will be installing Ubuntu here.

Microsoft store (ubuntu search)

Select any version of your choice and install

Launch the Ubuntu app when it’s done installing and type the command and type the following into the text editor and save.

sudo nano /etc/wsl.conf

root = /

Install or launch your VS Code application and install the Remote WSL extension to help you access files in your Linux environment from windows.

Installing extension

Once the extension is done installing. You can now switch your development environment to Linux from within VScode by clicking the green button at the bottom left of the IDE.

VS code

Select “Remote-WSL — New window” and continue with your development in the newly opened window.

I hope this helps.

Good luck!!!



Oluwatosin Olubiyi

Pronoun: He/Him. Backend Engineer. Passionate about building data-driven and interactive products.