Select matching element/rename HTML tag in Visual Studio Code

后端 未结 8 653
长情又很酷
长情又很酷 2020-12-01 03:32

Let\'s say I\'ve got the following code

    

How can I

相关标签:
8条回答
  • Do you want to rename the paired tags? If yes, there is a much easier way: you just need to install the Auto Rename Tag extension. When you rename one HTML tag, it will automatically rename the paired HTML tag.

    0 讨论(0)
  • 2020-12-01 04:07

    No need for extension, this is now cooked into VSCode.

    "editor.renameOnType": true
    

    Read more here: https://code.visualstudio.com/updates/v1_41#_html-mirror-cursor , https://code.visualstudio.com/updates/v1_44#_synced-regions

    0 讨论(0)
提交回复
热议问题