I would like to know if there is an extension to automatically format and indent code on visual studio code
CodePudding user response:
You can use Prettier
code formatter and set it to format on save
option available on VS Code.
So, whenever you will save your program. Your code will be formatted and indented.
Prettier link here