Useful keyboard shortcuts
Visual Studio:
- Full Screen mode: Shift+Alt+Enter
- Split/unsplit window of current file: Alt+W, P
- Solution Explorer: Alt+Ctrl+L
- Edit window: Escape
- Output: Alt+2
- Watch window: Alt+3
- Auto watch: Ctrl+Alt+V, A
- Registers: Alt+5
- Memory view: Alt+6
- ASM view: Alt+8
- Macro editor: Alt+F11
- Show tabs: Ctrl+Shift+8
- Show invisible characters (space, tabs): Ctrl+R Ctrl+W
- Last Find results: Alt+V, N, 1
- Incremental search: Ctrl+I then type what you search. Ctrl+I or Ctrl+Shift+I to go to next/previous result.
- Go quickly through matching {}, () or #if/#else/#endif: Ctrl+]
- Insert line before: Ctrl+Enter
- Insert line after: Ctrl+Shift+Enter
- Breakpoint window: Alt+F9
- Add/Remove breakpoint: F9
- Disable/enable: Ctrl+F9
- Add condition to current breakpoint: ContextMenu, B, C
- Add memory breakpoint: assign something to "Debug.NewDataBreakpoint" (I like Alt+Shift+F9)
- Step over/Step in: F10/F11
- Step out: Shift+F11
- Move instruction pointer to current line: Ctrl+Shift+F10
- Open all code blocks: Ctrl+M, Ctrl+P
- Hide selection in a closed block: Ctrl+M, Ctrl+H
- Collapse all functions, definitions and code blocks: Ctrl+M, Ctrl+O
- Collapse/uncollapse current block: Ctrl+M, Ctrl+M
- List of last pastes (Visual Assist): Ctrl+Shift+V
- Member list: Ctrl+J
- Current function call parameters infos: Ctrl+Shift+Space
- Quick info about current word: Ctrk+K, Ctrl+I
- Auto-Completion: Alt+Right
- Create bookmarks: Ctrl+F2
- Go to next bookmark: F2
- Add new line above current line: Ctrl+Enter
Subversion/AnkhSvn in Visual Studio
- Assign shortcut to EditorContextMenus.CodeWindow.Subversion.DocumentChanges
Other useful tools in Visual Studio:
Perforce:
- Bookmarks: Ctrl+B to define them, then Alt+1..9
- Diff: Ctrl+D or Right-click + D or double-clic for a single file
- Open for Edit: Ctrl+E
- Revert: Ctrl+R (dangerous!)
- Synch: Ctrl+Y
- Force sync: Right-clic, Y, F
- Sync to changelist/date/label: Right-clic, Y, L
- Describe changelist from its number: Alt+C, G
- F7/F8 (in diffs): previous/next change
- F10/F11 (in diffs): vertical/horizontal split
Windows:
- Win+E: Explorer
- Win+R: Run
- Shift+Ctrl+Escape: Task Manager
- Win+Break: System Properties
- Shift+Enter: open directory in a new Explorer
Outlook
- Ctrl+1,2,3: email, calendar & meetings, contacts
- Ctrl+K: auto-complete email addresses
- Ctrl+Y: move selected emails to another folder (type name in new window)
- Ctrl+R, Ctrl+F, Ctrl+Shift+R, Ctrl+Shift+F: reply, forward, replay to all, forward to all
- Ctrl+N: the obvious new message
- Alt+Ctrl+V: special paste (useful to keep current email's presentation)
- Ctrl+U: mark as unread
- Win+Q: bring Office Communicator main window (if launched previously)
Vim/GVim
See page about Vim
Keyboard function keys under Linux
In your .xbindkeysrc:
"amixer set Speaker 3%+ -c 0; amixer set Speaker 3%+ -c 1; amixer set Speaker 3%+ -c 2"
XF86AudioRaiseVolume
"amixer set Speaker 3%- -c 0; amixer set Speaker 3%- -c 1; amixer set Speaker 3%- -c 2"
XF86AudioLowerVolume
"amixer set Speaker toggle -c 0; amixer set Speaker toggle -c 1; amixer set Speaker toggle -c 2"
XF86AudioMute
#"deadbeef --play-pause"
#"exaile -t"
"audacious -t"
XF86AudioPlay
#"deadbeef --prev"
#"exaile -p"
"audacious -r"
XF86AudioPrev
#"deadbeef --next-
#"exaile -n"
"audacious -f"
XF86AudioNext
#"deadbeef --prev"
#"exaile -p"
"audacious -r"
XF86Back
#"deadbeef --next-
#"exaile -n"
"audacious -f"
XF86Forward
"eject -T"
XF86Eject
Make an Apple Keyboard more usable under Linux
Source.
In /etc/modprobe.d/hid_apple.conf, to swap Al/Cmd and to have function keys by default:
options hid_apple swap_opt_cmd=1
options hid_apple fnmode=2
In your .xModmap:
! Apple keyboard
! F13 as Insert key
! F14 as PrintScr
! F15 as ScrollLock
! F16 as Pause/Break
!Depending on the keyboard, F13... will map to 182-184,93 or 191-194
!keycode 182 = Insert
!keycode 183 = Print Sys_Req
!keycode 184 = Scroll_Lock
!keycode 93 = Pause Break
keycode 191 = Insert
keycode 192 = Print Sys_Req
keycode 193 = Scroll_Lock
keycode 194 = Pause Break
In your .xbindkeysrc:
"audacious -t"
F8
"~/Bin/playPauseYoutube.sh"
Control+Mod2 + F8
"amixer set Speaker 3%+ -c 0; amixer set Speaker 3%+ -c 1; amixer set Speaker 3%+ -c 2"
F12
"amixer set Speaker 3%- -c 0; amixer set Speaker 3%- -c 1; amixer set Speaker 3%- -c 2"
F11
"/opt/firefox/firefox"
c:191
"/opt/firefox/firefox"
XF86Launch6
#"codeblocks"
#"codelite"
"codelite"
XF86Launch5