Город МОСКОВСКИЙ
00:02:19

Code Formatting with Prettier in Visual Studio Code

Аватар
Создание красивого интерфейса с CSS
Просмотры:
21
Дата загрузки:
27.11.2023 08:04
Длительность:
00:02:19
Категория:
Обучение

Описание

Code Formatting with Prettier in Visual Studio Code

Steps to enable auto-formatting on save :

Step1 : Open Preferences, select settings then search "format", make sure enable format on save is "ticked"

Step 2: Install "Prettier" extension by going on to preferences, select extensions

Step 3: Go to default formatter and copy the first line - "editor.default Formatter" : "esbenp.prettier-vscode"

Step 4 : Paste the copied code in setting.json at the end. Make sure to put a comma at the end

Рекомендуемые видео