How to use Prettier in VS Code - Code Formatting

How to use Prettier in VS Code - Code Formatting

Coding With Adam

2 года назад

315,040 Просмотров

In this video I will show you how to install and configure Prettier Code Formatter in VS Code. Formatting code consistently can be a challenge, particularly when working on a team. Code formatters like prettier can help solve this issue. Consistent code formatting helps with the readability of a project.

Learn how to setup VS Code to format code whenever a file is saved or code is pasted into VS Code.

Learn how to configure Prettier using a JSON configuration file .prettierrc

Learn the difference between VS Code user settings and VS Code workspace settings.

If you are having trouble getting prettier to work uninstall Prettier Code Formatter extension and follow this video.

Prettier Configuration
https://prettier.io/docs/en/configuration.html

Prettier Settings Options
https://prettier.io/docs/en/options.html

Prettier extension
https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Тэги:

#prettier #prettier_code_formatter #code_formatter #vs_code_prettier_code_formatter #vs_code #vs_code_save_format_code #format_code_on_save #code_formats_on_save_vs_code #prettier_vs_code #vs_code_prettier #install_prettier_vs_code #prettier_configuration_file #prettier_configuration_json_file #code_formatters #how_to_use_prettier_in_vs_code #using_prettier_in_vs_code #vscode #visual_studio_code_prettier_code_formatter #prettier_not_working #prettier_wont_work
Ссылки и html тэги не поддерживаются


Комментарии: