vscode配置

一、修改快捷鍵

image.png
// 將鍵綁定放在此文件中以覆蓋默認(rèn)值
[
    // 整行刪除
    {
        "key": "cmd+d",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    // 回到下一個(gè)位置
    {
        "key": "cmd+left",
        "command": "workbench.action.navigateBack",
        "when": "canNavigateBack"
    },
    // 回到上一個(gè)位置
     {
        "key": "cmd+right",
        "command": "workbench.action.navigateForward",
        "when": "canNavigateForward"
    },
    // 重做
    {
        "key": "cmd+y",
        "command": "redo"
    },
    // 搜索文件
    {
        "key": "shift shift",
        "command": "workbench.action.quickOpen"
    },
    // 查找所有引用
    {
        "key": "shift+cmd+g",
        "command": "references-view.findReferences",
        "when": "editorHasReferenceProvider"
    },
   
    // 在文件中查找======start
    {
        "key": "ctrl+h",
        "command": "workbench.action.findInFiles"
    },
     // 刪除原來ctrl+h
    {
        "key": "ctrl+h",
        "command": "-deleteLeft",
        "when": "textInputFocus"
    },
    {
        "key": "shift+cmd+f",
        "command": "-workbench.action.findInFiles"
    },
    {
        "key": "shift+cmd+f",
        "command": "-workbench.view.search",
        "when": "workbench.view.search.active && neverMatch =~ /doesNotMatch/"
    },
    {
        "key": "shift+cmd+f",
        "command": "-workbench.action.terminal.searchWorkspace",
        "when": "terminalFocus && terminalProcessSupported && terminalTextSelected"
    },
    {
        "key": "shift+cmd+f",
        "command": "editor.action.formatDocument",
        "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
    },
    {
        "key": "shift+alt+f",
        "command": "-editor.action.formatDocument",
        "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
    },
    {
        "key": "cmd+'",
        "command": "searchEverywhere.search"
    },
    {
        "key": "alt+cmd+p",
        "command": "-searchEverywhere.search"
    },
        // 在文件中查找======end


]

二、增加fulishe/jsconfig.json文件

放到fulishe文件下

{
    "compilerOptions": {
        "target": "ES6",
        "module": "commonjs",
        "allowSyntheticDefaultImports": true,
        "baseUrl": "./",
        "paths": {
            "@framework/*": [
                "framework/*"
            ],
            "@modules/*": [
                "modules/*"
            ],
            "@model/*": [
                "model/*"
            ],
            "@utils/*": [
                "utils/*"
            ],
            "@common/*": [
                "common/*"
            ],
            "@include/*": [
                "include/*"
            ],
            "@base/*": [
                "base/*"
            ],
            "@router/*": [
                "router/*"
            ],
            "@config/*": [
                "config/*"
            ],
            "@component/*": [
                "component/*"
            ],
            "@components/*": [
                "components/*"
            ],
            "@vipshop/*": [
                "vipshop/*"
            ]
        }
    },
    "exclude": [
        "node_modules"
    ]
}

二、安裝插件

image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容