1 Path Autocomplete(@路径提示的插件)
步骤一:在vscode的扩展搜索中直接搜索Path Autocomplete,直接安装
步骤二:配置
配置 VS Code settings.json
"path-autocomplete.pathMappings": {
"@": "${folder}/src",
"~@": "${folder}/src",
},
jsconfig.json
{
"compilerOptions": {
"target": "esnext",
"baseUrl": "./",
"paths": {
"@/*": ["src/*"],
}
},
"exclude": ["node_modules"]
}
2 别名跳转插件
如图