HTML Fomat selection disappeared with V1.30

513 Views Asked by At

On VS Code HTML or JavaScript if I select a block of code and by clicking on right button on the options available I could "Format Selection" which indents ar auto-format the selection.

After updating to V1.30 this option has disappeared from right click context menu.

Do you know why? How can I enable again?

Thanks

2

There are 2 best solutions below

0
On

You can shorten this sequence you're following by just enabling autoformat. Just go to your VS settings and search for autoformat and enable it for the required languages. It might ask you to install extensions for linting depending on the language.

1
On

Go to File -> Preferences -> Settings and then type in format in the search bar at the top of that page, and check the settings in there, there are a lot of ways to format the code, so you may find some new stuff there that will be beneficial as well as which setting you have turned off. I just upgraded and have the format functionality still in my instance.