Setting up VS code Environment

Stopping double quote and arrow function brackets

Create a file name .prettierrc

then put this code

{
  "singleQuote": true,
  "arrowParens": "avoid"
}

Setting console.log snippet

Go to preferences -> user snippets new global snippets file -> Name it and put this code

{  “singleQuote”: true,  “arrowParens”: “avoid”}

Enabling default formater

Settings search default formatter and select Prettier – code formatter

Enabling format on save

Setting -> search format on save and check it.

Extension

Settings Sync

Leave a Reply

Your email address will not be published. Required fields are marked *