Search code examples
htmlvisual-studio-codeprettier

How do you disable the addition of / at the end of a single tag in Prettier in VS Code in HTML?


How do you disable the addition of / at the end of a single tag in Prettier in VS Code in HTML?

How do you disable the addition of / at the end of a single tag in Pr ettier in VS Code in HTML How do you disable the addition of / at the end of a single tag in Pr ettier in VS Code in HTM


Solution

  • Well, on Visual Studio 2019, you go to the settings, and you search for "HTML", under Text "Editor -> HTML -> Advanced" you have to search for the 'Automaticcaly insert closure tags' toggle. Visual Studio is pretty similar to Visual Studio Code, so you should be able to untick that toggle too.