Is there a keyboard shortcut to move the cursor between methods in Visual Studio 2010?

后端 未结 10 526

Is there any keyboard shortcut to move the cursor between methods in Visual Studio? Is there any plugins that can do the same job?

All the time when I program, I wan

10条回答
  •  囚心锁ツ
    2020-12-09 02:17

    Note: For VS <2015, the following works only for the VB.NET code editor. In VS 2015+, apparently the C# code editor is also supported.

    While there are no default keyboard bindings to jump between methods, you can set them up yourself:

    Go to ToolsCustomize…, then Keyboard…, and do the following:

    1. Search for the commands by typing Method in the input line at the top.

    2. Locate the two commands Edit.NextMethod and Edit.PreviousMethod.

    3. For each of these, select the command first, then move the input focus to the input field Press shortcut keys, enter an unassigned key combination, and press the Assign button.

    Options dialog where keyboard bindings can be set up and modified

    (The screenshot above shows that I have previously assigned one of these commands to Ctrl+Shift+<.)

提交回复
热议问题