Trae 或 vscode无法在vue文件中自动跳转解决

1.安装插件:

image

 

2.软件右下角找到语言模式,选择".vue"的配置文件关联

image

image

 

3.若vue文件中的import 仍然无法跳转,则需要在根目录新建一个文件 jsconfig.json

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "./src/*"
      ],
    }
  }
}

 

posted @ 2025-10-09 13:45  何足道66  阅读(5)  评论(0)    收藏  举报