一、修改快捷鍵

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