Search code examples
visual-studioclassnavigationkeyboard-shortcuts

What's the quickest way to navigate to the top of a class in Visual Studio


If I'm editing deep within the body of a class, what would be the quickest (ie. fewest keyboard shortcuts) way to navigate to the top of the class declaration (the line that contains "class ClassName"


Solution

  • Press Ctrl+F2, to get to the navigation bar, then hit enter to select the currently focused class.