Make a collapsed code node hide all Intellisense/Attribute data
Currently when you select Outlining->Collapse To Definitions, the IDE hides the code inside of your method or class which makes navigating around a file much easier. However, if the method has attribute data or intellisense comments these items are not hidden and you get
[/// <summary>]
[SomeAttribute]
[+] public void MethodName(int params)
The extra lines are just visual noise that make the collapsed code slightly ****** to skim through and take up screen space that could be used to show more collapsed method nodes. Also, having the intellisense comments collapse to [/// <summary>...] in every case is not helpful.
A better implementation would be to hide everything except for the method signature, like
[+] public void MethodName(int params)
or possibly show the intellisense stuff at the end of the line while skipping past the ///<summary> bit and showing part of the actual comment like
[+] public void MethodName(int params) [comment goes here]
This is just a minor quality-of-life thing but it would lead to cleaner looking collapsed code and make navigating around a lot easier.
1 comment
-
Jonas Hertzman
commented
Yes to this, but I would like this to go even further, and also be able to collapse class and member decorations so this code:
/// <summary>
/// Here goes summary.
/// </summary>
[DisplayName("The display name for my property")]
[Category("Stuff")]
[DefaultValue("Empty")]
[Description("Set this property to achieve behavior.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public string MyProperty
{
get{return a;}
set{a = value;}
}can be collapsed to this:
[+] public string MyProperty [...] [summary] [decorations]