跳到主要内容

My VS Code Setup and Configuration

· 阅读需 3 分钟
Guangze Yang
Master of Control System, Ibaraki University

Visual Studio Code is a powerful, lightweight code editor that I've customized for optimal productivity.

Workspace Configuration

{
"folders": [
{
"path": "."
}
],
"settings": {
// Theme and appearance settings
"workbench.colorTheme": "One Dark Pro",
"workbench.list.smoothScrolling": true,
"window.dialogStyle": "custom",
"window.titleBarStyle": "custom",

// Editor settings
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "smooth",
"editor.mouseWheelZoom": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.wordWrap": "on",
"editor.acceptSuggestionOnEnter": "smart",
"editor.suggestSelection": "first",
"editor.suggest.snippetsPreventQuickSuggestions": true,
"editor.fontFamily": "Consolas, 'MS 明朝', 'Courier New', monospace",
"editor.largeFileOptimizations": false
}
}

Theme and Appearance

Color Theme

"workbench.colorTheme": "One Dark Pro"

Using One Dark Pro for consistent, eye-friendly dark theme.

Window Settings

"workbench.list.smoothScrolling": true,
"window.dialogStyle": "custom",
"window.titleBarStyle": "custom"
  • Smooth scrolling in lists
  • Modern custom dialog boxes
  • Customized window title bar

Editor Configuration

Cursor and Visual Effects

"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"editor.cursorBlinking": "smooth"

Enhanced visual experience with smooth animations.

Automatic Formatting

"editor.mouseWheelZoom": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true
  • Ctrl+Mouse wheel zooming
  • Auto-format on paste, type, and save

Text and Suggestions

"editor.wordWrap": "on",
"editor.acceptSuggestionOnEnter": "smart",
"editor.suggestSelection": "first",
"editor.fontFamily": "Consolas, 'MS 明朝', 'Courier New', monospace"

Optimized text display and intelligent suggestion handling.

Essential Extensions

🛠️ Development Tools

🎨 UI Enhancements

✅ Code Quality

📈 Productivity

Language-Specific Extensions

🐍 Python Development

🌐 Web Development

⚡ C/C++ Development

📝 Documentation

🔧 Remote Development


Why This Setup?

Productivity Focus: Every setting and extension serves to reduce friction and increase coding efficiency.

Visual Comfort: Smooth animations and the One Dark Pro theme reduce eye strain during long coding sessions.

Multi-Language Support: Comprehensive coverage for Python, C/C++, web development, and academic writing.

Quality Assurance: Built-in formatting, linting, and spell checking maintain code quality automatically.