

In Visual Studio Code, create a new file called package. Once complete, your native version of Visual Studio Code will open the folder. The first time you do this, it will trigger a download for the necessary dependencies: Now, open up your folder in Visual Studio Code, you can do this by typing: Next, install Node.js and npm: sudo apt-get install nodejs Open your WSL Ubuntu terminal and ensure everything is up to date by typing:Įntering your password and pressing Y when prompted. Once installed we can test it out by creating an example local web server with Node.js Install Node.js and create a new project Alternatively, you can just install Remote - WSL. This is an extension pack that allows you to open any folder in a container, remote machine, or in WSL. bashrc, add a line as follows: export PATH'HOME/.local/bin:PATH' source. Navigate to the Extensions menu in the sidebar and search for Remote Development. wsl -list -version Show as wsl 2 Enter the Linux console wsl Change related files' rights chmod u+x vscodedir/code.exe chmod u+x vscodedir/bin/code Create symbolic link ln -s vscodedir/bin/code code mv code /.local/bin Modify. Once the installation is complete, open Visual Studio Code. To install Visual Studio Code visit the Microsoft Store and search for Visual Studio Code.Īlternatively, you can install Visual Studio Code from the web link here.ĭuring installation, under the Additional Tasks step, ensure the Add to PATH option is checked. One of the advantages of WSL is that it can interact with the native Windows version of Visual Studio Code using its remote development extension. Once you have completed the relevant tutorial, the following steps will work on either Windows 10 or 11.


In Visual Studio Code, create a new file called package.Working with Visual Studio Code on Ubuntu on 2:30
