I'm trying to set a Keyboard Shortcut in Visual Studio 2013 to Shift + Tab. However, when I put my cursor in the 'Press shortcut keys' textbox and attempt to press the Shift + Tab combination it doesn't put anything into the textbox and tabs back to the previous control!
Is there something that I am missing to let Visual Studio know that I am in fact entering a keyboard shortcut, and not using the command?
On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.
In VS Code, you only need to use a shortcut to run your code. That shortcut is Ctrl + Alt + N. There are a few more ways to run code. Pressing F1 and then choosing “Run Code” also works.
I know the question is a little old, but I found, I think, a better answer. It is in fact possible to bind the TAB key using the Visual Studio GUI interface. The trick is to select Text Editor in the drop-down box for Use new shortcut in, like this:
The screen shot shows setting the TAB key to Edit.FormatSelection, so that pressing TAB correctly indents the current cursor line or block of lines (like Emacs! yay!) rather than inserting tab or space characters.
If you still want access to inserting a tab character, you can add it to another key combination, like Ctrl-TAB.
I think that tab and shift-tab are bound to Windows, therefore even unassigning the Edit.SelectNextControl and Edit.SelectPreviousControl won't do much...
You can hack the XML though -- VS2013 saves changed keyboard shortcuts to CurrentSettings.vssettings under Documents\Visual Studio 2013\Settings
Good luck fighting Windows :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With