There was a need to edit html in vscode. The problem is that when I insert the text and I want to bring it to mind, the code is formatted as hell. For javascript there is a great tool to bring the code to a single style - eslint. For html something like this did not find. Ideally, I would like the code to look readable when pressing ctrl + k ctrl + f. What are the plugins for this and how to configure them?

  • Try this combination if I understand you correctly:? ctrl + alt + l ????? - mansurka64
  • Vscode is not idea. It’s so easy to align. - Stariy Ded

1 answer 1

I used to use Beautify, but there is one small but :) In conjunction with eslint, you must / can / use the mod preftier to format the code according to the set rules in eslint using a standard button combination. The problem is that the prettier conflicts with beautify, so I switched completely to the eslint + prettier combination and advise you. https://prettier.io/ UPD: on the site I noticed a link to https://github.com/Unibeautify/vscode , maybe this is what you are looking for :)