vscode配置

一、修改快捷键

image.png
// 将键绑定放在此文件中以覆盖默认值
[
    // 整行删除
    {
        "key": "cmd+d",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus && !editorReadonly"
    },
    // 回到下一个位置
    {
        "key": "cmd+left",
        "command": "workbench.action.navigateBack",
        "when": "canNavigateBack"
    },
    // 回到上一个位置
     {
        "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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容