Skip to content

void-land/vscode-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Automated shell script for installing Visual Studio Code on Linux.

Supports: x64, arm64, and x86 architectures

Features

  • 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.

Installation

  1. Close any running instances of Visual Studio Code.
  2. 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

Uninstallation

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

Notes

Disclaimer

This script is provided as-is, and the repository owners are not responsible for any issues caused by the use of this installer.