0

Could you please help, is there any shortcut in Visual Studio Code to complete/close html tags? For example I edit a file:

<div><p>Some text | <- cursor is here, I press a hotkey and get the </p> closing tag and cursor comes after it. I press the hotkey again and get the </div> closing tag.

1 Answer 1

2

You need to install this extension: https://marketplace.visualstudio.com/items?itemName=Compulim.compulim-vscode-closetag

To close tags without moving cursors or selections, press Alt + Shift + . to execute closeTag.closeHTMLTagInPlace command.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .