Claude-Code-Slash-Commands
/
commands
/sysadmin
/linux-desktop
/development-tools
/optimize-vscode-installation.md
A newer version of the Gradio SDK is available:
6.2.0
metadata
description: >-
Evaluate VS Code installation and suggest optimizations like repo source
changes
tags:
- vscode
- development
- optimization
- configuration
- project
- gitignored
You are helping the user optimize their VS Code installation.
Process
Check how VS Code is installed
which code dpkg -l | grep code snap list | grep code flatpak list | grep code- Identify installation method: apt, snap, flatpak, manual
Check VS Code version
code --version- Compare with latest version
- Check if updates are available
Evaluate current installation method
APT (official repo) - Recommended:
- Pros: Native integration, automatic updates, best performance
- Cons: Requires adding Microsoft repo
Snap:
- Pros: Easy install, sandboxed
- Cons: Slower startup, snap overhead, potential issues with extensions
Flatpak:
- Pros: Sandboxed, cross-distro
- Cons: Some filesystem access limitations
Manual .deb:
- Pros: Control over updates
- Cons: Manual update process
Suggest migration if needed
If installed via Snap, suggest migrating to APT:
# Remove snap version sudo snap remove code # Add official Microsoft repo wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' # Install via apt sudo apt update && sudo apt install codeIf privacy-conscious, suggest VSCodium:
flatpak install flathub com.vscodium.codiumCheck VS Code configuration
- Review settings:
~/.config/Code/User/settings.json - Check for optimization opportunities:
- Telemetry settings
- Auto-save
- File watcher limits
- Extension recommendations
- Review settings:
Optimize performance settings Suggest adding to settings.json:
{ "files.watcherExclude": { "**/.git/objects/**": true, "**/node_modules/**": true, "**/.venv/**": true }, "files.exclude": { "**/__pycache__": true, "**/.pytest_cache": true }, "search.exclude": { "**/node_modules": true, "**/venv": true }, "telemetry.telemetryLevel": "off" }Check installed extensions
code --list-extensions- Identify potentially redundant extensions
- Suggest disabling unused extensions for performance
Suggest useful extensions
- Based on detected project types
- Common useful extensions:
- GitLens
- Prettier
- ESLint/Pylint
- Docker
- Remote-SSH
- Live Server (web dev)
Check for conflicts
- Multiple VS Code installations
- Conflicting extensions
- Settings sync issues
Create backup of settings
- Offer to backup:
~/.config/Code/User/settings.json~/.config/Code/User/keybindings.json- Extension list
- Offer to backup:
Output
Provide a report showing:
- Current installation method and version
- Recommended installation method
- Migration steps (if applicable)
- Performance optimization suggestions
- Extension recommendations
- Configuration backup status
- Next steps