VScode配置存档

扩展插件

Beautify(代码格式化)
Live Server(本地服务器打开)
Material Icon Theme(文件图标主题)
One Dark Pro(颜色主题)
Open HTML in Default Browser(在默认浏览器中打开)
Path Autocomplete(路径自动补全)
Vetur(Vue组件代码高亮和提示工具)

用户配置

// 将设置放入此文件中以覆盖默认设置
{
    "files.autoSave": "afterDelay",
    "editor.fontSize": 15,
    "workbench.activityBar.visible": false,
    "window.zoomLevel": 1,
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/.vscode": true,
        "**/.gitignore": false,
        "**/.idea": true,
        "**/node_modules": true
    },
    "editor.multiCursorModifier": "alt",
    "workbench.statusBar.visible": true,
    "editor.wordWrap": "on",
    "liveServer.settings.port": 8088,
    "beautify.language": {
        "js": {
            "type": [
                "javascript",
                "json"
            ],
            "filename": [
                ".jshintrc",
                ".jsbeautify"
            ]
        },
        "css": [
            "css",
            "less"
        ],
        "html": [
            "htm",
            "html"
        ]
    },
    "path-autocomplete.extensionOnImport": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": true
    },
    "editor.renderIndentGuides": true,
    "workbench.colorCustomizations": {
        "editor.selectionBackground": "#555555"
    },
    "workbench.iconTheme": "material-icon-theme",
    "editor.quickSuggestionsDelay": 0,
    "editor.suggestOnTriggerCharacters": true,
    "editor.acceptSuggestionOnCommitCharacter": false,
    "editor.acceptSuggestionOnEnter": "off",
    "editor.snippetSuggestions": "top",
    "editor.wordBasedSuggestions": false,
    "markdown.preview.markEditorSelection": false,
    "editor.fontFamily": "consolas, Monaco",
    "markdown.enableExperimentalExtensionApi": true,
    "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html"
    },
    "workbench.colorTheme": "One Dark Pro"
}

按键配置

// 将键绑定放入此文件中以覆盖默认值
[
    {
        "key": "alt+a",
        "command": "workbench.action.toggleSidebarVisibility"
    },
    {
        "key": "ctrl+y",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+d",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "shift+alt+down",
        "command": "-editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "shift+alt+up",
        "command": "editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "alt+up",
        "command": "-editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+alt+l",
        "command": "HookyQR.beautifyFile"
    },
    {
        "key": "shift+alt+right",
        "command": "cursorWordEndRightSelect",
        "when": "editorTextFocus"
    },
    {
        "key": "shift+alt+left",
        "command": "cursorWordEndLeftSelect"
    },
    {
        "key": "alt+down",
        "command": "cursorColumnSelectDown",
        "when": "editorTextFocus"
    },
    {
        "key": "alt+up",
        "command": "cursorColumnSelectUp",
        "when": "editorTextFocus"
    }
]

你可能感兴趣的:(VScode配置存档)