Visual Studio Jump to Beginning of Function

前端 未结 7 916
情书的邮戳
情书的邮戳 2021-02-05 00:48

I know that Ctrl+} will take you to the corresponding brace in Visual Studio, but say I\'m in the middle of a gigantic function and I don\'t know where the

7条回答
  •  面向向阳花
    2021-02-05 01:38

    Update

    With last updates Visual Studio, now default keyboard shortcut for EditorContextMenus.Navigate.GoToContainingBlock is Shift+Alt+[


    Old Answer:

    Visual Studio 2017 version 15.8.0 comes with a new shortcut Ctrl + Alt + UpArrow - Go to Enclosing Block.

    Go to Enclosing Block (Ctrl + Alt + UpArrow) allows you to quickly navigate up to the beginning of the enclosing code block.

    Source

    This command allows also move to function declaration if you are inside function.

    If shortcut doesn't work for you

提交回复
热议问题