You will see the property if you scroll the window to the right. This is inconvenient. It probably has sense to report it using “Suggest a feature…” or “Report a problem…” from Help, Send Feedback menu.
Can't see property name when Collapse to Definitions
I'm using Visual Studio 2019, when I use the Collapse to Definitions feature I can't see the names of the properties in the code editor's display area but just Custom Attributes. I need and always use the names of properties along with their data types and don't need Custom Attributes. I have only declared Custom Attributes once and will almost never care about it again. The situation is similar with Visual Studio 2017.
How can I set up Custom Attributes to be hidden and property names always appear at the beginning of the line when using the Collapse to Definitions feature like Visual Studio 2013?
Developer technologies | VB
2 answers
Sort by: Most helpful
-
-
Dewayne Basnett 1,381 Reputation points
2021-05-03T13:32:47.197+00:00 You are writing the property like this
<DefaultValue(-42)> <Description("Foo when I use the Collapse to Definitions feature I can't see the names of the properties")> Public Property foo As Integer
It can be written like this
<DefaultValue(-42)> <Description("Foo when I use the Collapse to Definitions feature I can't see the names of the properties")> Public Property foo As Integer