Answers for "how to enable prettier as formatter"

5

prettier don't format line

// prettier-ignore						JS
{/* prettier-ignore */}					JSX
<!-- prettier-ignore -->				HTML / Markdown
/* prettier-ignore */					CSS
Posted by: Guest on April-09-2020
1

how to start prettier autoformatting

// for VScode follow these steps for custom workspace settings
// type 'code .vscode/settings.json' into the terminal and paste the below
// at the root of your project/workspace folder
{
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}
Posted by: Guest on June-19-2021

Code answers related to "how to enable prettier as formatter"

Code answers related to "Javascript"

Browse Popular Code Answers by Language