When editing a vue file with VSCode, you cannot use go to definition F12

The vue plug-in used by

is officially recommended by vetur,. When editing .vue files and selecting vue in language mode, you cannot use go to definition or preview definition. The language selection mode must be changed to JavaScript. Is there any way to go to definition when the language pattern is vue?


have you solved the problem? I also want to know


Today I finally found a way! Solved the problem that the vue project function cannot be redirected. Plug-in name: vue-helper article: https://blog.csdn.net/jin2703.

Menu