So I have a nice SyntaxEditor window open and I populate it with some c# code. I wanted to be able to use a shortcut or otherwise programmatically collapse all #region sections.
So I would have something like the following in my Syntaxeditor....
#region Stuff I want out of the way
//interesting code that doesn't need to change
#endregion
I may have multiple regions within my code in my syntaxeditor box. Were I in visual studio I could use a shortcut key such as CTRL+M+O to collapse and CTRL+M+L to expand.
I noticed CTRL+L seems to remove a line.
Ideally I'd like to programmatically access the actipro window and tell it to close all regions but I can always send the shortcut in if need be. However, the shortcut doesn't work.
Is there a way to collapse all #region sections?