Wednesday, 15 June 2011

visual studio - Is there a way to collapse all C# code blocks, ignoring #region definitions? -



visual studio - Is there a way to collapse all C# code blocks, ignoring #region definitions? -

there plenty of documentation on various vs hot-keys managing code-collapse functionality of editor. however, i've not found single feature (either hotkey or buried in menu) allow me collapse methods , ignore #region sections, leaving them uncollapsed.

in case, manage numerous older code files consist of on 10k-locs. didn't write code , of methods organized c# preprocessor regions. when execute "collapse all" see list of 20-30+ regions of code, collapsed along methods , properties defined within them. if want scan of document methods , properties, need expand every single region. gets tedious, when have jump file-to-file, each big last.

has else experienced need want , found way collapse block-based code blocks, while expanding region blocks? if so, how can done?

https://visualstudiogallery.msdn.microsoft.com/bc07ec7e-abfa-425f-bb65-2411a260b926

or

if using vs2012, alternative typically found in edit menu under outlining->collapse definitions.

c# visual-studio

No comments:

Post a Comment