How can you edit files stored in WSL from Visual Studio Code that is running on Windows?

Experience Level: Junior
Tags: WSL

Answer

Use Remote-WSL extension.

The extension allows you to run Visual Studio Code from Windows. It will then connect to the server in WSL (which it installs for you automatically). The extension will then let you do all the Visual Studio Code actions against WSL like if you were running Visual Studio Code directly in WSL.

Comments

No Comments Yet.
Be the first to tell us what you think.
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL)

Are you learning WSL ? Try our test we designed to help you progress faster.

Test yourself