Linux VS Code Guide - ryzendew/Linux-Tips-and-Tricks GitHub Wiki
Linux VS Code Guide
Complete beginner-friendly guide to Visual Studio Code on Linux, covering Arch Linux, CachyOS, and other distributions including installation, configuration, extensions, and development setup.
Table of Contents
VS Code Installation
Install VS Code
Arch/CachyOS:
# Install VS Code
yay -S visual-studio-code-bin
# Or open-source version
sudo pacman -S code
Debian/Ubuntu:
# Download from code.visualstudio.com
# Or use snap
sudo snap install code --classic
Fedora:
# Download from code.visualstudio.com
# Or use flatpak
flatpak install com.visualstudio.code
Launch VS Code
Start VS Code:
# Launch VS Code
code
# Or from application menu
VS Code Configuration
Settings
Configure VS Code:
- File → Preferences → Settings
- Search for setting
- Modify value
- Save
Keybindings
Customize shortcuts:
- File → Preferences → Keyboard Shortcuts
- Search command
- Change keybinding
Extensions
Install Extensions
Install extension:
- View → Extensions
- Search extension
- Click Install
Popular Extensions
Recommended extensions:
- Python: Python language support
- GitLens: Git integration
- Prettier: Code formatter
- ESLint: JavaScript linter
Development Setup
Python Development
Python setup:
- Install Python extension
- Select Python interpreter
- Create .vscode/settings.json
- Configure debugger
Git Integration
Git features:
- Source Control panel
- Git commands in command palette
- GitLens extension
Troubleshooting
VS Code Not Starting
Check installation:
# Reinstall VS Code
yay -S visual-studio-code-bin
# Check errors
code --verbose
Extension Issues
Reset extensions:
# Disable extensions
code --disable-extensions
# Re-enable one by one
Summary
This guide covered VS Code installation, configuration, and development setup for Arch Linux, CachyOS, and other distributions.
Next Steps
- Development Environment - Development setup
- Text Editors - Text editors
- VS Code: https://code.visualstudio.com/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.