VS Code WSL
Visual Studio Code integration with WSL
Quick summary
The bootstrapper does NOT install VS Code in Linux. Instead, install VS Code on Windows with the "Remote -- WSL" extension to get the code command available in your WSL terminal. VS Code then connects to WSL seamlessly for editing Linux files.
Common tasks
Basic Usage
code .Basic Usage
code file.rsBasic Usage
code --list-extensionsBasic Usage
code --install-extension rust-lang.rust-analyzerWhat is it?
The bootstrapper does NOT install VS Code in Linux. Instead, install VS Code on Windows with the "Remote -- WSL" extension to get the code command available in your WSL terminal. VS Code then connects to WSL seamlessly for editing Linux files.
Basic Usage
Open current folder:
$code .
Open a file:
$code file.rs
Manage extensions:
$code --list-extensions
$code --install-extension rust-lang.rust-analyzer
Tips
▶ Install extensions from the WSL terminal with code --install-extension.
▶ Keyboard shortcuts and settings sync automatically between Windows and WSL when you sign in with your GitHub account.