Scotts Web Dev Banner
Did you notice... every article on this site has an associated video? Consider subscribing to Scotts Web Dev on YouTube! :)

Using VS Code With WSL

You can use the WSL extension for VS Code to run a full featureset of Visual Studio Code inside of Windows Subsystem for Linux.

You Have To Be Running Windows Subsystem For Linux

You have to be running WSL for this extension to work. If you’ve been thinking about trying out WSL, check out my article/video on How To Install Windows Subsystem For Linux and How To Install A Web Server On WSL.

Install WSL Extension For Visual Studio Code To Use VS Code With WSL

Open Visual Studio Code and click on Extensions on the left side. From there, search for “WSL” and install the WSL extension.

That’s it!

Your VS Code can now “see” the WSL files as if they were local files. Tthey are, really.

Open Visual Studio Code From WSL

You can also open VS Code from inside of your WSL terminal. Simply navigate to the directory you want to open and type:

code .

See more articles on system administration.