“Right Click” keyboard short cut for Visual Studio?

非 Y 不嫁゛ 提交于 2019-12-03 02:31:00
boflynn

Taken from lytebyte, you've got two options:

  • Shift + F10
  • That nutty key on the bottom-right of a modern Windows keyboard, the Menu key

Depends on where/why you're right-clicking.

The context-menu key is on the right of the keyboard nowadays, usually between the Windows key and the Control key on the right of your spacebar. That will open the context menu whereever the current focus is (usually in the text editor).

If you're using the right mouse button just to open the refactoring tools, you can use Ctrl+. (control period) to pop open the "smart tag" on any identifier. That'll get you the "generate method stub" menu item and the like.

Does your keyboard have the extra 'Windows' keys, ie. the Windows logo (Start key) and the one on the right-hand side of the spacebar that looks like a menu? Cause that button on the right-hand side is the 'Context menu key'.

See the key between the right-hand side 'Windows' key and the 'Ctrl' key? Windows Keyboard layout

If your keyboard is less than 10 years old you should have these keys, unless you have an IBM laptop or a Mac.!

To open a new file without keyboard you can use CTRL + SHIFT + N (Using Resharper) To show up the right click menu for any part of your code. Point to the part that you want and use SHIFT + F10

Normally, I like using CTRL + SHIFT + G (Resharper again) for getting the Navigation menu (Usage, Base, Implementation, etc)

Even better if you want to go to any Method/class/intenal/or a field, use CTRL + SHIFT + ALT + N (Again using Resharper), this will bring you a list of all that match your criteria to choose from.

Assuming you just want a key you can press to right click, most\many keyboards have a key between alt and ctrl that right clicks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!