Before installing VS Code, confirm your DGX Spark system meets the requirements and has GUI support.
# Verify ARM64 architecture
uname -m
# Expected output: aarch64
# Check available disk space (VS Code requires ~200MB)
df -h /
# Verify desktop environment is running
ps aux | grep -E "(gnome|kde|xfce)"
# Verify GUI desktop environment is available
echo $DISPLAY
# Should return display information like :0 or :10.0
Navigate to the VS Code download page and download the appropriate ARM64 .deb package for your system.
Alternatively, you can download the installer with this command:
wget https://code.visualstudio.com/sha/download?build=stable\&os=linux-deb-arm64 -O vscode-arm64.deb
Install the downloaded package using the system package manager.
You can click on the installer file directly or use the command line.
# Install the downloaded .deb package
sudo dpkg -i vscode-arm64.deb
# Fix any dependency issues if they occur
sudo apt-get install -f
Confirm the VS Code app is installed successfully and can launch.
You can open the app directly from the list of applications or use the command line.
# Check if VS Code is installed
which code
# Verify version
code --version
# Test launch (will open VS Code GUI)
code &
VS Code should launch and display the welcome screen.
Set up VS Code for development on the DGX Spark platform.
# Launch VS Code if not already running
code
# Or create a new project directory and open it
mkdir ~/spark-dev-workspace
cd ~/spark-dev-workspace
code .
From within VS Code:
Test core VS Code functionality to ensure proper operation on ARM64.
Create a test file:
# Create test directory and file
mkdir ~/vscode-test
cd ~/vscode-test
echo 'print("Hello from DGX Spark!")' > test.py
code test.py
Within VS Code:
python3 test.pygit status in the terminalWARNING
Uninstalling VS Code will remove all user settings and extensions.
To remove VS Code if needed:
# Remove VS Code package
sudo apt-get remove code
# Remove configuration files (optional)
rm -rf ~/.config/Code
rm -rf ~/.vscode