All the documentation suggests that ctrl+comma should bring up the navigate to dialog. When I perform that keystroke in VS2010 I get a list of "Recent files" instead. Under the "Edit" menu, "Navigate To" doesn't display a keyboard shortcut. Am I missing something?
The documentation probably refers to profile settings different from what you've chosen. You can customize them by going to Tools -> Options -> Environment -> Keyboard and set the keybinding you want. You can also reset your settings to one of the defaults (or a previously exported set) from Tools -> Import and Export Settings.
Related
For some reason in my VS2013 environment shift+E is assigned to some keyboard command, where additional input is required (see image).
This is extremely frustrating when typing something like:
IEvent event = ...
Reset procedure through tools->options-> as described here
http://blogs.msdn.com/b/zainnab/archive/2010/08/05/keyboard-shortcuts-reset-all-your-shortcuts-vstiptool0064.aspx
doesn't seem to work.
Does anybody know how to find and reset this shortcut?
You can also reset Visual Studio settings through Tools | Import and Export Settings.... Select "Import selected environment settings" and click Next. Choose whether or not to save your current settings or not and click Next. Select whichever of the default settings you wish to reset your keyboard shortcuts to and click Next. Then uncheck every setting except for Options > Environment > Keyboard and click Finish.
I usually access Visual Studio's Find in Files feature with Ctrl-Shift-F, type in what I'm after and press enter.
Everything is working, I can type what I want to find, Ctrl-A will select all text, arrow keys will navigate within the Find What text control only the enter key press does nothing. The dialog still has focus, just nothing happens.
The accelerator keys that are marked on the various buttons also do not do what I expect. Alt-P will open the Project menu, Alt-F the File menu, Alt-A nothing. When the Find in Files dialog is focussed I expect the Find Previous, Find Next or Find All actions to be performed.
The tab key also does not change focus from one control to another while in that dialog.
The escape key will kill the focus in that dialog and return focus back to the file that I have open in the text editor as expected.
I have tried using the Reset button under Tools -> Options -> Environment -> Keyboard to no avail.
I am using Visual Studio Ultimate 2013 Update 4 on Windows 7 x64.
If you're using Resharper, after applying R# keyboard scheme, it will add it's keyboard shortcuts. For example, it adds Alf+F shortcut in Text Editor scope.
Setting your keyboard shortcut in Global scope is not enough if same keyboard shortcut is set by R# for Text Editor.
To override R# shortcut in Global scope, make sure you delete R# shortcut setting in VS keyboard settings modal dialog.
Rarely, strange keyboard shortcut behavior could be also caused by non-US keyboard setting. If you are using non-English keyboard set in Windows Control Panel settings, try this solution:
Set keyboard layout to US
Reset keyboard shortcuts in VS under Tools -> Options -> Environment -> Keyboard
Assign your shortcuts (e.g. Alt-F)
Set keyboard to your local layout
There were Ctrl+E+C (comment) and Ctrl+E+U (uncomment) in older versions, or Ctrl+K+C and Ctrl+K+U.
But in VS 2012, I can't see key shortcuts:
How to enable those shortcuts?
Keyboard accelerators are configurable. You can find out which keyboard accelerators are bound to a command in Tools -> Options on the Environment -> Keyboard page.
These commands are named Edit.CommentSelection and Edit.UncommentSelection.
(With my settings, these are bound to Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U. I would guess that these are the defaults, at least in the C++ defaults, but I don't know for sure. The best way to find out is to check your settings.)
You can also add the toolbar in Visual Studio to have the buttons available.
View > Toolbars > Text Editor
Use the keys CtrlK,C to comment out the line and CtrlK,U to uncomment the line.
From your screenshot it appears you have ReSharper installed.
Depending on the key binding options you chose when you installed it, some of your standard shortcuts may now be redirected to ReSharper commands. It's worth checking, for example Ctrl+E, C is used by R# for the code cleanup dialog.
This is how I did it,
Menu Tools → Options on the Environment → Keyboard window
One can alter the default shortcuts following the below steps
Select Edit.CommentSelection in the listbox
Click on "Remove" button
Select "Text Editor" option in the dropdown under "Use new shortcut in:"
Press your own shortcut in the textbox under "Press shortcut keys:"
Example: Pressing Ctrl+E and then C will give you Ctrl+E, C
Click on "Assign" button
Repeat the same for Edit.UnCommentSelection (Ctrl+E, U)
I went to menu: Tools → Options.
Environment → Keyboard.
Show command containing and searched: comment
I changed Edit.CommentSelection and assigned Ctrl+/ for commenting.
And I left Ctrl+K then U for the Edit.UncommentSelection.
These could be tweaked to the user's preference as to what key they would prefer for commenting/uncommenting.
"commentLine" is the name of function you are looking for. This function coment and uncoment with the same keybinding
Shift + alt + a
the command palette is great for finding shortcut keys.
Is there a keyboard shortcut that allows you to easily change Build Configuration (say, from Debug to Release) in Visual Studio (2008)?
In the Standard Toolbar there is a drop-down where one can easily change between Build Configurations, but I only know how to access it with my mouse.
Is there an easy way this can be done via the keyboard?
Just for the record, it's actually not that hard to use the standard keyboard mappings for the Configuration Manager dialog:
Alt+B, O, (Arrow keys or first letter, e.g. D(ebug) or R(elease)), Enter
The dialog box pops up fairly quickly, so this works for me.
You can set up a key combo through the Tools -> Options -> Environment -> Keyboard dialog. The Build.SolutionConfigurations command will put your focus on the build configuration drop down so you can easily change the configuration with the arrow keys. Additionally the Build.SolutionPlatforms selects the Platform drop down. The only drawback is that focus will be taken away from whatever was previously selected.
It doesn't seem there are, but you can set a key command (Tools -> Options -> Environment -> Keyboard) for Build.ConfigurationManager, which will open a dialogue box that you can use the cursor keys to navigate quickly.
You could also set up a macro (similar to this) and bind that to a hot key.
I have a macro that I wrote to just help me with my unit testing (it was derived from other macros that just add underscores to the name of the method as you write it,), and when I go to Tool > Options > Environment > and then keyboard to assign a shortcut to it, it not anywhere to be found, none of the "MyMacros" default section is there. Any ideas?
Also, the macro explorer option isn't under Tools menu, I need to hit ALT+F8 to get to it, maybe they are related?
Thanks.
You're likely running into an issue where your current profile settings hid the macro explorer. Try going to Tools -> Import/Export Settings and choose reset all settings. Choose the "General Profile." If it is a settings issue, this will cause the menu to re-appear.