Is there a keyboard shortcut in Visual Studio to navigate to the parent XML / XHTML node in the XML code view?

Not too sure how to invent this about what is already said in the header, but it would be great if I vibrated my carat on a node in the XML / XHTML source code view so that I could press a key to go to the parent node.

If not in Visual Studio, is it in any add-ons such as ReSharper or [cannot remember the name of any others ..!]?

+3
source share
1 answer

Using ReSharper, you can go to the "Containing declaration" (the default is Ctrl+ 8, configure by changing ReSharper.ReSharper_GotoContainingDeclaration). In the Visual Studio menu, you can use ReSharper - Navigate - Containing Declaration. This works in XML, XHTML, and C #.

Given the following XML:

<?xml version="1.0" encoding="utf-8" ?>
<persons>
  <person>
    <name>Mikael</name>
  </person>
</persons>

If you are inside "Mikael", the first command "go to the content of the announcement" will lead you to the "name", then the next will move you to the "person", and after the third command you will be in the "faces".

+4
source

Source: https://habr.com/ru/post/1762845/


All Articles