Supports: x64, arm64, and x86 architectures
- Automatically detects Linux distribution and architecture.
- Downloads the latest stable release of Visual Studio Code.
- Extracts and installs to
~/.local/vscode-stable
for user-only access. - Automatically adds the binary to
~/.local/bin
for easy terminal access. - Creates a
.desktop
file for easy launching from the applications menu. - Optional flags for clearing cache and forced reinstallation.
- Close any running instances of Visual Studio Code.
- Run the following command in your terminal:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/void-land/vscode-installer/main/install.sh)"
or
curl -f https://raw.githubusercontent.com/void-land/vscode-installer/main/install.sh | sh
To uninstall Visual Studio Code, run the following commands:
rm -rf ~/.local/vscode-stable ~/.local/bin/code
rm -rf ~/.local/share/applications/code.desktop
rm -rf ~/.local/share/applications/code-url-handler.desktop
- For Flatpak users, you can install Visual Studio Code from Flathub.
- For manual download, you can get the Debian package from the official Visual Studio Code website.
This script is provided as-is, and the repository owners are not responsible for any issues caused by the use of this installer.