Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 06, 2008 11:58 AM by iys
Jun 04, 2008 02:12 PM|LINK
Is there a keyboard shortcut that will collapse all nodes and child nodes within an xml document that you are editing.
I have a xml file that is several layers deep and has thousands of childnodes off of the root node.
I can get the root node to collapse but it doesn't collapse all the children.
Viewing and editing is a pain with everything expanded.
Thanks in advance!
Jun 04, 2008 03:06 PM|LINK
Press Ctrl + m + m in front of root node.
This will help u...
Please mark if this answer is correct.
Jun 04, 2008 05:25 PM|LINK
Thanks for the reply.
It does collapse the root.
It doesn't collapse all the children in the root.
Collapsing every child recursively of every root so I can open just what I need is very time consuming to do manually.
Jun 05, 2008 03:10 AM|LINK
No easy answer for this. If you have the time and ability...
Perhaps you could create yourself a new Visual Studio Macro. Click View - Other Windows - Macro Explorer.
In the Sample project, look in the VSEditor file. There are two methods that you can use/borrow code from to create your own macro:
The code is in your language, VBMan!
Jul 02, 2008 07:35 PM|LINK
CTRL+A, then CTRL+M+M
Alternatively, if there is just a specific section of nodes you wish to collapse/expand, you can highlight just that section then do CTRL+M+M
Aug 06, 2008 11:33 AM|LINK
does anyone know if there is a keyboard cheetsheet anywhere. the CTRL+M+M trick will save me hours editing a confif thats 44k lines.
Aug 06, 2008 11:58 AM|LINK
VS 2005 C# -
VS 2008 C# -
VS 2005 VB -
VS 2008 VB -