Visual Studio keyboard shortcut for Method Name combobox

后端 未结 4 1705
一个人的身影
一个人的身影 2020-12-17 17:12

In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the ri

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-17 17:43

    You can try the IncrementalSearch and ReverseIncrementalSearch mappings for this. It's not as straightforward as using the mouse on the combobox, but it will get you to where you're going. Just search and continue hitting the shortcut until you get to the right one.

    The mapping is taken from emacs, which I got used to in college and enjoy.

    The problem I run into with this is if I have a lot of similarly named methods and variables, then I have to search through to find the right one.

    So to find the definition I just use Sub methodName() in the search.

    This is nice for finding code fragments/methods/vars quickly without having to take your hands off the keyboard.

提交回复
热议问题