VS Code#
Overview#
- The AI Workbench integration streamlines attaching VS Code to a project container.
Adding VS Code to a project in the Desktop App creates an option in the Application Launcher. Launching it starts the container and attaches a VS Code window.
- You add VS Code on a project-by-project basis
Anyone that clones the project can launch VS Code from the Application Launcher. If VS Code isn’t installed, this will initiate the VS Code install.
- There are minor configurations for VS Code for WSL2 or Podman.
On Windows, you must configure VS Code to use the
NVIDIA-WorkbenchWSL distribution. If you are using Podman locally, you must specifically configure VS Code use it.
Prerequisites: VS Code and Local Extensions#
- Step One: Install VS Code on the same system you have the Desktop App.
Go to the Visual Studio Code site and download the version for your operating system.
- Step Two: Install the Remote-SSH extension.
Select VS Code window > View (Top) > Extensions
Type Extensions (Top LHS) > Search Bar >
ms-vscode-remote.remote-sshSelect Remote-SSH
- Step Three: Install the Dev Container extension.
Type Extensions (Top LHS) > Search Bar >
ms-vscode-remote.remote-containersSelect Dev Containers
VS Code requires the WSL extension and dev.containers.executeInWSL for full local install on Windows.
- Step One: Install the WSL extension.
Select VS Code window > View (Top) > Extensions
Type Extensions (Top LHS) > Search Bar >
ms-vscode-remote.remote-wslSelect Remote-SSH
- Step Two: Configure the *NVIDIA-Workbench* distribution.
Select VS Code window > File > Preferences > Settings
Type Settings Tab > Search Bar >
dev.containers.executeInWSLSelect Execute in WSL
Type Execute in WSL Distro >
NVIDIA-Workbench
Using Podman with VS Code locally requires configuring dev.containers.dockerPath.
- Do the following in a VS Code window.
Select File > Preferences > Settings
Type Settings Tab > Search Bar >
dev.containers.dockerPathType Docker Path >
podman
Add VS Code to a Project#
- Step One: Open the project you want to add VS Code to.
Select Locations Manager > Location Card > Project Card
- Step Two: Add VS Code to the project.
Select Project Tab > Project Container > Apps (LHS) > Add
Select VS Code
Success: The modal disappears and the Application Launch shows VS Code in the drop down.
Open VS Code in a Project#
- Once VS Code is added to the project, just open it using the Application Launcher.
This will work for local projects and remote projects.
Select Project Tab > Application Launcher > VS Code