引用依赖,js等代码ctrl+左键点击不跳转
主要说法是@解析不到的问题,导致找不到
安装插件Vetur和Vue - Official
工程跟路径下添加jsconfig.json
{ // This file is required for VSCode to understand webpack aliases "compilerOptions": { // This must be specified if "paths" is set "baseUrl": ".", // Relative to "baseUrl" "paths": { "@/*": [ "./src/*" ], } } }
vue代码ctrl+左键点击,跳转成功
按照ctrl,鼠标悬停代码下方有个线条且会预览部分目标文件内容;
点击左键,代码跳转成功
标签:VUE,ctrl,代码,点击,vue,跳转,左键 From: https://www.cnblogs.com/leonlipfsj/p/18405573