
- #HOW TO INSTALL UBUNTU ON WINDOWS 10 INSTALL#
- #HOW TO INSTALL UBUNTU ON WINDOWS 10 FULL#
- #HOW TO INSTALL UBUNTU ON WINDOWS 10 CODE#
- #HOW TO INSTALL UBUNTU ON WINDOWS 10 WINDOWS#
#HOW TO INSTALL UBUNTU ON WINDOWS 10 INSTALL#
Select Install to install an extension on your remote host. Local extensions that actually need to run remotely will appear dimmed and disabled in the Local - Installed category. Note: If you are an extension author and your extension is not working properly or installs in the wrong place, see Supporting Remote Development for details. There will be Local - Installed category and one for WSL. Once installed, you can tell where an extension is installed based on the category grouping. If you install an extension from the Extensions view, it will automatically be installed in the correct location.
#HOW TO INSTALL UBUNTU ON WINDOWS 10 CODE#
While extensions that affect the VS Code UI, like themes and snippets, are installed locally, most extensions will reside inside WSL. VS Code runs extensions in one of two places: locally on the UI / client side, or in WSL.
#HOW TO INSTALL UBUNTU ON WINDOWS 10 WINDOWS#
You can also avoid passwords by configuring WSL to use the Windows Git credential manager. If you are working with the same repository in WSL and Windows, be sure to set up consistent line endings. To force that a file is opened add -goto or use:Ĭode -file-uri vscode-remote://wsl+Ubuntu/home/ubuntu/fileWithoutExtension Working with Git To force that a folder is opened, add slash to the path or use:Ĭode -folder-uri vscode-remote://wsl+Ubuntu/home/ubuntu/ If it has a file extension, it is considered a file. We need to do some guessing on whether the input path is a file or a folder. To open a WSL window directly from a Windows prompt use the -remote command line parameter:įor example: code -remote wsl+Ubuntu /home/jim/projects/c If you are in a WSL window and want to open the current input in a local window, use WSL: Reopen in Windows. You will be prompted which distro to use. If you already have a folder open, you can also use the WSL: Reopen Folder in WSL command. Press F1, select WSL: Connect to WSL for the default distro or WSL: Connect to WSL using Distro for a specific distro.From VS CodeĪlternatively, you can open a WSL window directly from VS Code: That's it! Any VS Code operations you perform in this window will be executed in the WSL environment, everything from editing and file operations, to debugging, using terminals, and more. Once finished, you now see a WSL indicator in the bottom left corner, and you'll be able to use VS Code as you would normally! VS Code will now continue to configure itself in WSL and keep you up to date as it makes progress. Note: If this command does not work, you may need to restart your terminal or you may not have added VS Code to your path when it was installed.Īfter a moment, a new VS Code window will appear, and you'll see a notification that VS Code is opening the folder in WSL. This should only take a short while, and is only needed once. When doing this for the first time, you should see VS Code fetching components needed to run in WSL.

Navigate to a folder you'd like to open in VS Code (including, but not limited to, Windows filesystem mounts like /mnt/c) Open a WSL terminal window (using the start menu item or by typing wsl from a command prompt / PowerShell). Opening a folder inside the Windows Subsystem for Linux in VS Code is very similar to opening up a Windows folder from the command prompt or PowerShell.

Open a remote folder or workspace From the WSL terminal If you plan to work with other remote extensions in VS Code, you may choose to install the Remote Development extension pack. Note: When prompted to Select Additional Tasks during installation, be sure to check the Add to PATH option so you can easily open a folder in WSL using the code command.

Install Visual Studio Code on the Windows side (not in WSL). See the Remote Development and Linux article for details. Also, extensions installed in Alpine Linux may not work due to glibc dependencies in native source code inside the extension. Note: WSL 1 does have some known limitations for certain types of development. Install the Windows Subsystem for Linux along with your preferred Linux distribution. Note: After reviewing this topic, you can get started with the introductory WSL tutorial.
#HOW TO INSTALL UBUNTU ON WINDOWS 10 FULL#
This lets VS Code provide a local-quality development experience - including full IntelliSense (completions), code navigation, and debugging - regardless of where your code is hosted. The extension runs commands and other extensions directly in WSL so you can edit files located in WSL or the mounted Windows filesystem (for example /mnt/c) without worrying about pathing issues, binary compatibility, or other cross-OS challenges. You can develop in a Linux-based environment, use Linux-specific toolchains and utilities, and run and debug your Linux-based applications all from the comfort of Windows. The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment right from VS Code. Configure IntelliSense for cross-compiling.
