Post

My VScode Setting

Visual Studio Code

Visual Studio Code (VS Code) is a powerful, lightweight code editor.

Workspace Setting

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  "folders": [
    {
      "path": "."
    }
  ],
"settings": {
// Theme and appearance settings
  "workbench.colorTheme": "One Dark Pro", // One Dark Pro theme
  "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

1
"workbench.colorTheme": "One Dark Pro"

Window Settings

1
2
3
"workbench.list.smoothScrolling": true
"window.dialogStyle": "custom"
"window.titleBarStyle": "custom"
  • Enables smooth scrolling in lists
  • Uses modern custom dialog boxes instead of native ones
  • Customizes window title bar appearance

Editor Configuration

Cursor and Scrolling

1
2
3
"editor.cursorSmoothCaretAnimation": "on"
"editor.smoothScrolling": true
"editor.cursorBlinking": "smooth"

Enhances visual experience with smooth cursor movement and scrolling animations.

Zoom and Formatting

1
2
3
4
"editor.mouseWheelZoom": true
"editor.formatOnPaste": true
"editor.formatOnType": true
"editor.formatOnSave": true
  • Enables Ctrl+Mouse wheel zooming
  • Automatically formats code when:
    • Pasting content
    • Typing
    • Saving files

Text and Layout

1
2
3
4
"editor.wordWrap": "on"
"editor.acceptSuggestionOnEnter": "smart"
"editor.suggestSelection": "first"
"editor.suggest.snippetsPreventQuickSuggestions": true
  • Wraps long lines of text
  • Intelligently handles suggestion acceptance
  • Prioritizes first suggestion in the list
  • Prevents quick suggestions when working with snippets

Font and Performance

1
2
"editor.fontFamily": "Consolas, 'MS 明朝', 'Courier New', monospace"
"editor.largeFileOptimizations": false
  • Sets editor font family with fallback options
  • Disables optimizations for large files, which may improve editing experience for big files at the cost of performance

VScode Extensions

Development Tools

  • Code Runner:Runs code snippets in multiple languages directly from the editor.
  • DevContainers:Develops inside Docker containers for consistent development environments.
  • Docker:Provides Docker integration for building and managing containers.

UI Enhancements

Code Quality

Productivity

  • Todo Tree: Shows TODO comments in a tree view.
  • WakaTime: Tracks coding time and habits.

Specialty Tools

Language Support

Python

C/C++ Development

Remote Development

  • Remote - SSH: Remote development over SSH.
  • WSL: Windows Subsystem for Linux integration.

Web Development

MATLAB Development

  • MATLAB: MATLAB language support and integration.

ROS Development

  • ROS: Robot Operating System framework support.

Markdown Support

LaTeX Support

This post is licensed under CC BY 4.0 by the author.