Easy Visual Studio Code Tips and tricks

tuenhai.com 2018-12-07

How ot open VS Code user settings

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

You can also open the Settings editor from the Command Palette (Ctrl+Shift+P) with Preferences: Open Settings or use the keyboard shortcut (Ctrl+,)

Click ... click Open settings.json


for example:

    "files.autoSave": "afterDelay",
    "nim.runOutputDirectory": "../bin",
    "window.zoomLevel": 2,
    "editor.multiCursorModifier": "ctrlCmd",
    "files.eol": "\n",
    "[markdown]": {
        "editor.quickSuggestions": true
    "markdown.preview.fontSize": 12,

Search and replace

  • Ctrl+Shift+F Quickly search over all files
  • Shift+Alt+F Find in folder
  • Ctrl+Shift+E Open the Explorer
  • {**/*.md,**/*.txt} group conditions

Regex Tips

  • [一-龥] Match Chinese

Plugin: English word hint

Add lines to USER SETTINGS:

"[markdown]": {
    "editor.quickSuggestions": true

Plugin: markdownlint

Markdown/CommonMark linting and style checking for Visual Studio Code

Plugin: LanguageTool Extension for Visual Studio Code

Provides offline grammar checking in Visual Studio Code using LanguageTool via the LanguageTool Language Server. This extension provides only the core functionality. You must install extensions containing the language rules for each language you wish to be able to check.

任何人生疑惑,请找 海云青飞 https://www.tuenhai.com