matt_dev
matt_dev

Reputation: 5236

"Right Click" keyboard short cut for Visual Studio?

I'm trying to force myself to use as little mouse as possible and I can't find the answer to this simple short-cut anywhere! Here the the steps:

  1. Open up Visual Studio. Open any C# file (or any code file I believe)
  2. Point your mouse anywhere on the window/file.
  3. Right Click

Is there a shortcut key for this so I don't have to move my hand to the mouse?

Upvotes: 38

Views: 17867

Answers (5)

glennkentwell
glennkentwell

Reputation: 479

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.!

Upvotes: 2

Matt Hamilton
Matt Hamilton

Reputation: 204259

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 wherever 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.

Upvotes: 7

Has AlTaiar
Has AlTaiar

Reputation: 4152

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.

Upvotes: 2

boflynn
boflynn

Reputation: 3724

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

Upvotes: 84

davidtbernal
davidtbernal

Reputation: 13684

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.

Upvotes: 1

Related Questions