The problem of using the code plug-in Eslint and prettier code Formatter of Visual Studio tools

Description:

  1. When using Visual Studio, if there is no code prompt, it will be a headache. If you don’t have the habit of writing code and you can’t remember the indentation rules of the code, the appearance of your code will not be very refreshing.

experience feelings

  1. Use Eslint, Prettier code formatter plug-in
    a. You can easily prompt out the unreasonable parts of the code, and quickly locate the places that need to be modified. In addition, space indentation, extra blank lines, etc., the problem of unaligned symbols will all be under the effect of the Eslint plug-in. When saving the file's own code, it will automatically format to improve the formatting speed of the code.

Problems encountered

  1. Problems encountered: After installing Eslint, Prettier code formatter, there is no automatic code formatting style when saving the code.
    Reason 1: Eslint is in the lower right corner of the software and is disabled when viewing.
    Reason 2: Whether the downloaded plug-in is what you need, and the time is right. You can remove the inapplicable plug-ins.

List plugins

  1. The plug-ins used are as follows:
    a. beautiful
    b. vetur
    c. tag auto close
    d. auto rename
    e. eslint
    f. prettier code formatter
    and replace the indentation on the left side of the code with dots. I forgot what the name of the plug-in is .
Problems with the Eslint plugin

1. Two front-end vue projects. Developed in the same Visual Studio tool, but it was a headache for Eslint. The solution is to copy the .Idea in the root directory to the same.

Guess you like

Origin blog.csdn.net/wangleisuiqiansuiyue/article/details/109349222