Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What if vscode writes vue code without a code hint?

Shulou Source: shulou.com Published: 2022-06-02 15:49:54 10月25日 Update

This article will explain in detail how to write vue code without code tips for everyone. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.

I. Install plug-ins

There is a button on the left to install plugins. Click it to install plugins through keyword search.

II. Plug-in configuration

File =》Preferences =》Settings =》User Settings

III. Plug-ins

vetur

Function: Code hint, highlight

Configuration:

"emmet.syntaxProfiles": { "vue-html": "html", "vue": "html" }

ESLint

Function: Code error checking

Configuration:

"eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true // HTML autofix, }, { "language": "vue", "autoFix": true // vue Auto Fix } ], "eslint.autoFixOnSave": true //autofix when file is saved

File Peek

Function: Path jump

Configuration:

"file_peek.activeLanguages": [ "typescript", "javascript", "python", "vue"],"file_peek.searchFileExtensions": [ ".js", ".ts", ".html", ".css", ".scss", ".vue"] About "vscode writing vue code without code tips how to do" This article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

Tags: Code plug-ins configuration hints functions articles what to do files more good practical key keywords content buttons articles users knowledge paths errors Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi Redmi Linux Microsoft