Matching tag in HTML keyboard shortcut

后端 未结 9 1579
不思量自难忘°
不思量自难忘° 2020-12-14 14:44

Is there a shortcut in Visual Studio (2008) that will allow me to jump to matching HTML tag... as CTRL+] does for matching braces when you are in code view?

Example:

9条回答
  •  忘掉有多难
    2020-12-14 15:21

    In Visual Studio 2015, this is now supported with the usual bracket matching keystrokes;

    • ctrl+] jumps from the start tag to the end tag.
    • ctrl+shift+] selects everything between the start tag and the end tag.

    It seems pretty sensitive, though, and to select an entire tag and its contents you need to start right on the < that opens the tag.

提交回复
热议问题