Babr
Babr

Reputation: 2081

How can I re-indent Vue.js code in VSCode?

The title tells it all. I have installed a couple of Vue.js related plugins for Visual Studio Code, but still can not format the code, as I used to do it easily in SublimeText. Appreciate your hints?

Upvotes: 1

Views: 9696

Answers (1)

Buddy
Buddy

Reputation: 91

You can either use an extension called "Prettier" or "Beautify", then follow the instruction to set it up/ Just open the Extension window and look it up there, after you installed it you can right click on the opened file window and choose "Format Document" or simply press "Ctrl + Alt + F"

Upvotes: 1

Related Questions