Home > Blockchain >  How can I make Visual Studio Code auto format?
How can I make Visual Studio Code auto format?

Time:07-03

How can I make Visual Studio Code auto format to adequately render my methods and loops indented? Although I tried Ctrl K, and Ctrl D, it didn't work for me.

CodePudding user response:

You can press Control Shift P or Command Shift P (Mac) to open the command palette and type "settings" and then select "Preferences: Open User Settings" option. Search for "format on save" setting and check the checkbox. Whenever you save your file, it gets formatted automatically.

  • Related