vscode, Ctrl + 鼠标左键实现文件跳转
在项目根目录增加jsconfig.json文件
jsconfig.json文件配置1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18{
"compilerOptions": {
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"api/*": ["src/api/*"],
"components/*": ["src/components/*"],
"language/*": ["src/language/*"],
"lib/*": ["src/lib/*"],
"mock/*": ["src/mock/*"],
"routes/*": ["src/routes/*"],
"static/*": ["src/static/*"],
}
},
"exclude": [
"node_modules"
]
}
配置效果图
篇外
注:Alt + ←(方向左键)来返回到原来的位置