6

I'm trying to bind the following shortcut: Ctrl + W to close tabs

How can you customize VS to add/change shortcuts? Also, what are the most useful shortcuts you guys have found?

Mihai Limbășan
  • 64,368
  • 4
  • 48
  • 59
Kevin
  • 13,044
  • 11
  • 55
  • 76

5 Answers5

6

Tools > Options > (Show all settings), then Environment > Keyboard.

Here, rebind the key “File.Close” to Ctrl+W.

Valery Viktorovsky
  • 6,487
  • 3
  • 39
  • 47
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
3

I keep a link to Jeff's shortcuts page, and refer to it to learn the shortcuts for all tasks I find myself regularly doing. I also use VisualAssist, and use a lot of:

  • toggling between .h and .cpp files (yes, I code in C++ :) ) (Alt-o);
  • going to the definition of something (Alt-g).
Heinrich Cloete
  • 702
  • 5
  • 12
OysterD
  • 6,660
  • 5
  • 34
  • 33
3

VS 2005/2008 Keybinding posters:

These don't cover customizations but they're good reference materials and definitely helpful for finding new shortcuts.

Community
  • 1
  • 1
NakedBrunch
  • 48,713
  • 13
  • 73
  • 98
2

Tools > Options > Environment > Keyboard

I find most of them useful TBH!

Commenting, Bookmarking, Incremental Search, etc etc.

The one you want to override by the way is Window.CloseDocumentWindow which defaults to CTRL+F4

Heinrich Cloete
  • 702
  • 5
  • 12
Rob Cooper
  • 28,567
  • 26
  • 103
  • 142
1

Ctrl-Shift-Space shows the syntax/overloads for the current function you are typing parameters for.

Heinrich Cloete
  • 702
  • 5
  • 12
Maslow
  • 18,464
  • 20
  • 106
  • 193