How to set auto align in Prettier for Visual Studio Code?

1.2k views Asked by At

I really like how Prettier/Python and other extensions works in VSC but I want to add settings to auto align or align by selecting code:

https://github.com/WarWithinMe/better-align/raw/master/images/2.gif

I tried Better Align extension but the result is beeing overwritten by Prettier.

1

There are 1 answers

2
Jenn On

Put

// prettier-ignore

above the area you want prettier to ignore.