This will make you more productive as you will not be wasting your time in formatting code.īut sometimes, it may happen that, you don't want the formatting done by prettier and you want to keep your own formatting for a particular file, then you can follow the following step: Now, write the code any way you want and just save the file to format it. So now, you don’t have to worry about adding or removing space or moving code to the second line if it does not fit on one line. ![]() Then on saving, it will be formatted like this: Now If you save any file then you will see the file formatted properly.
0 Comments
Leave a Reply. |