Home > database >  How do I see the enclosing blocks/elements with my keyboard in Visual Studio
How do I see the enclosing blocks/elements with my keyboard in Visual Studio

Time:10-05

In Visual Studio 2019, I can hover over the dotted lines indicating spacing. If I keep my mouse still for a second, Visual Studio will display a box showing the enclosing blocks.

enter image description here

This works and has been very helpful for me while writing C#, TypeScript and HTML (for HTML it shows enclosing elements, not enclosing blocks; also I couldn't get Sass to work).

My question: How do I, if possible, get this box to display, using just my keyboard? Thank you :)

CodePudding user response:

I believe you are referring to the ability to view the structure, called Show Structure in the menu options. The shortcut for this is...Ctrl K, Ctrl G

You can see this from the code page's context menu... Right click the code page > Annotation > Show Structure.

  • Related