Visual Studio Code Configuration

Visual Studio Code

From the 1.23.0beginning VS Codeit is no longer provided by default in each language version, but instead provide a way to use plug-in language packs.

In the search for add-ons store Chinese (Simplified), install.

Synchronization Visual Studio Code plug-ins and Configuration

  • Use ctrl+shift+Xopen extended search, search installation Settings Sync, the installation is complete click 重新加载.

  • In VS codeuse shortcuts alt+shift+u, it will automatically jump to the browser, go to this link. Click Generate new tokenand enter Token description, is the name, Select scopescheck gist, and then click Generate token, will generate a tokencopy. The copy tokenand paste into VS codethe carriage, will upload configuration and plug-in information, there will be something like this after the upload is complete:
    `` `
    CODE SETTINGS the SYNC UPLOAD the SUMMARY
    Version: 2.9.2
    --------------------
    GitHub Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    GitHub Gist: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    GitHub Gist Type: Secret

    Restarting Visual Studio Code may be required to apply color and file icon theme.
    --------------------
    Files Uploaded:

    Extensions Removed:

    Extensions Added:
    code-settings-sync v2.9.2
    vscode-icons v7.23.0
    vscode-language-pack-zh-hans v1.23.4
    --------------------
    Done.
    ```

  • In GitHubGist on, there will be an cloudSettingsopen link , click on the just created token, in the description Token descriptionafter adding xxxx_<GitHubGist>, this can prevent forgotten GitHubGistvalues.

  • Copy the GitHub Gistinformation on the new computer installation Settings Sync, open the configuration alt+shift+u, the GitHub Gistpaste values into account, wait for the download synchronization.

Visual Studio Code Configuration

  • Visual Studio Code Shortcuts

    • Write markdownwhile writing a preview shortcuts: ctrl + kand press v.
  • Visual Studio Code plug-ins

    • Python
    • Go
    • Anaconda Extension Pack
    • Material Icon Theme
  • settings.json Configuration

    {
        "editor.fontSize": 16,
        // 原始字体配置 "Menlo, Monaco, 'Courier New', monospace",
        "editor.fontFamily": "Monaco",
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggest.localityBonus": true,
        "editor.minimap.showSlider": "always",
        "editor.suggestSelection": "first",
    
        "python.venvPath": "~/miniconda3/envs",
        // 函数自动补全括号
        "python.autoComplete.addBrackets": true,
    
        "workbench.fontAliasing": "auto",
        "workbench.colorTheme": "Default Light+",
        "workbench.iconTheme": "material-icon-theme",
    
        "window.zoomLevel": 0,
    
        "files.insertFinalNewline": true,
        "files.autoGuessEncoding": true,
        "files.trimFinalNewlines": true,
        "files.trimTrailingWhitespace": true,
        "files.autoSave": "afterDelay",
    
        "terminal.integrated.fontFamily": "Monaco",
        "terminal.integrated.fontSize": 16,
        // 解决vscode自动进入anaconda环境时,python依旧是系统路径的问题
        "terminal.integrated.env.osx": {
            "PATH": ""
        },
        "search.showLineNumbers": true,
        "workbench.editor.highlightModifiedTabs": true,
    }

Guess you like

Origin www.cnblogs.com/zzhaolei/p/11068167.html