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:
Open up Visual Studio. Open any C# file (or any code file I believe)
Point your mouse anywhere on the
window/file.
Right Click
Is there a shortcut key for this so I don't have to move my hand to the mouse?
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 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.
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.
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.!
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.
Related
add shortcut
I use command + button Click nothing happened but every other keys work properly.
Go to the settings menu as described below
File ->
Settings... ->
Keymap
From the appropriate menu/sub menu header, Pick the action you want to assign a shortcut to.
Right click to select either a keyboard or mouse shortcut.
Keyboard shortcut
Choose a key combination.
If the key combination is already in use you can either choose a second stroke or a modifier like CTRL, ALT or SHIFT etc.
Mouse shortcut
Choose a click or double click, scroll wheel up / down etc.
If the mouse short cut combination is already in use you can use a keyboard modifier like CTRL, ALT or SHIFT etc.
I can't seem to find the exact keyboard shortcut I'm looking for.
When I do a "Find in Files" (Ctrl + Shift + F), the keyboard navigation automatically jumps to the Find results, and I can navigate the results with the arrow keys; the code editor window updates itself as I do so, and pressing Enter pops me from the Find Results Window to the code editor Window.
Now, this is great for the initial search, but what if I want to bounce back and forth, say, if I need to make changes around a few different places in my find results?
Is there a keyboard shortcut to jump back from the code editor window to the find results?
I'm using MSVS 2013, if it matters.
If you have the General Development keyboard scheme, try: Alt + F6.
This is bound to the Window.NextPane which is where you just came from, so it should take you back.
Also, Alt + F7 is Window.NextToolWindowNav which pops up a nav selection which makes it easy to move around. This nav selection is the same one for Ctrl + Tab which, once open, can be navigated up, down, left and right via arrow keys.
Is there any way to make a hotkey to resize the width of the current editor window in VS2013?
I do pretty much everything entirely through hotkeys EXCEPT resizing my windows. Most often I have 2 or 3 editors open in the same window vertically so each one is relatively narrow. Switching between the windows is easy with Ctrl + Tab but I really wish I could press a hotkey with left/right arrows to increase/decrease width of the current editor.
EDIT: Or at least go full screen into the current window temporarily. This is not the same as going full screen normally with Shift + Alt + Enter since that full screens all 3 windows still seperated.
Any way to do this?
Perhaps not quite what you want but VS has a shortcut for "Window.Float".
Options > Keyboard > Window.Float
Assign a shortcut for it (I've assigned Ctrl + W, Down Arrow)
When you float the window, you can snap it using the Windows shortcut of WinKey + Arrows.
WinKey + Left snaps the window to the next left-available position.
WinKey + Right snaps the window to the next right-available position.
WinKey + Up maximises.
WinKey + Down minimises.
Another option is to keep the tool windows "Solution exp, Team exp, .." as hidden,
and then using their shortcuts to show them again. When you are done press "Alt + _" for the alt-space menu.
For example, using the default settings, I have solution explorer hidden.
My use flow is:
Ctrl+p ctrl+p [Show the solution explorer window]
Use the keyboard to navigate or skip #1 and press "Ctrl+;" to search
When I'm done, press "esc" to hide it
or for windows where I want it to stay open: "Alt+_" then press "k" for dock
On windows 7 new install I couldn't change language via right alt +
shift.
I could do by the left alt + shift.
I used to change by right alt shift and left alt shift all worked in the previous win7 installation.
Is there anyway to solve this?
Is the keyboard layout set correctly and is the right Alt in fact an Alt-Gr instead of a plain Alt key?
If you right-click your taskbar I think there may be an option to open your Keyboard and Language options. If I'm not remembering correctly then you can certainly get to it through your Control Panel. You can change the keyboard layout here.
Open a text editor and try typing in the alternate and lesser used keys such as #$/|~` and so on to test if the right keys produce the right characters.
The on screen keyboard can also give you a display of what layout the computer thinks you are using. You can find that in your Accessibility Options.
I wonder what is the keyboard shortcut for these two combo boxs and specially the right part which list all the members of current class and is very handy for navigating a large class.
I tried to figure it out myself but I do not know the exact names to search for it.
That whole thing is called "Navigation bar" (Window.MovetoNavigationBar) and can be activated by default by pressing Ctrl + F2. There doesn't seem to be a shortcut for the right side of the navigation bar, so pressing the short cut key always takes you to the combo box on the left side. You can use Tab to jump between the combo boxes.
The keyboard shortcut is Ctrl + F2 which takes you to the left-hand combo. If you hover over each one in turn (at least in VS2k8) it shows you a tooltip which identifies the two combos as "Types" and "Members", respectively.
Pressing Tab will take you to the right-hand combo and Ctrl + ↓ will expand the combo for you.
Alternative Resharper approach #1
"Go to file member" which is "Alt+\" .
go to link for advanced features
Alternative Resharper approach #2
"Go to Next/Previous Member" with Alt+Down or Alt+Up
this one is very handy and my favorite :