Poblem with VS Code extension

Viewed 37

Installed the "Auto Close Tag" extension for VS Code, but for some reason it does not work. The description of the extension shows that it closes tags automatically. In my case, the tag is closed only after pressing the combination (Alt + .) Please help me

1 Answers

Instead of using an extension, you can enable linked editing in VSCode.

Add this to your settings.json file:

"editor.linkedEditing": true

This controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.

Also, you can add this to automatically close tags in html:

"html.autoClosingTags": true,
"javascript.autoClosingTags": true,
"typescript.autoClosingTags": true

See here for some additional information if needed.

Related