![]() ![]() You can ensure that any developer that accesses your project-through GitHub or elsewhere-can use the same styling rules. Prettier recommends adding a Prettier configuration file to all of your projects. If you use Prettier, you should also set it as your default code formatter by editing the VS Code settings JSON file: You can also enable formatting on save by adding "editor.formatOnSave": true to your VS Code settings JSON. To format a document, you can right use the command: CMD/CTRL + Shift + P -> Format Document. Prettier enforces a consistent style across your entire codebase by parsing your code and reprinting it according to its set of styling rules. Prettier is an opinionated code formatter.
0 Comments
Leave a Reply. |