Each vue project in vscode has '$event' automatically generated after the equal sign and cannot be deleted, no matter uninstall vscode or disable plug-ins one by one. How to solve this problem?

dh1364304172 注册会员
2023-02-28 05:22

Is it because of Vue Language Features(Volar) version, or try updating it?

TANJIAN662 注册会员
2023-02-28 05:22
< div class = "md_content_show e397 data - v - 3967" = "" >

may others is good at using other

libinyaogoupiao 注册会员
2023-02-28 05:22

Since VSCode's Vue support is provided through plug-ins, you can try the following solutions to help you solve the problem:

  1. Use VSCode's "Reset Settings" feature to reset all Vue plug-in Settings in VSCode;

  2. Use VSCode's Clear cache feature to clear the cache of all relevant Vue plug-ins in VSCode;

  3. Try to uninstall and then reinstall the VSCode Vue plug-in;

  4. Search for and install the latest version of VSCode's Vue plug-in from the VSCode "Expansion store";

  5. Try to test using different versions of VSCode and Vue plug-in versions.

xiaowenzi12 注册会员
2023-02-28 05:22

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > the problem may be caused by the Volar plugin Settings, Volar is a Vue development plug-in, You can provide features such as autocompletion, syntax highlighting, code hints, and more. In the default Settings for Volar, $event is automatically added to the template.

< h2 > if you want to remove the automatically generated $event, can be found in the setting of VSCode "volar. Experimental. TemplateInterpolationService" and it is set to false, so you can disable this feature.

Also, if you disable the Volar plug-in and the code prompt and completion functions fail, it may be because of other plug-ins and Settings conflicts. You can try to re-enable Volar and check for additional plug-ins or Settings, or add additional plug-ins one by one after reinstalling the Volar plug-in to eliminate conflicts.

czzw818 注册会员
2023-02-28 05:22

Thanks for providing the idea. I set the prompt on the generated $event

in setting.

About the Author

Question Info

Publish Time
2023-02-28 05:22
Update Time
2023-02-28 05:22