Questions tagged [hotkeys]

Hotkeys provide quick access to user interface application or system actions via combinatorial key presses.

Good software design assumes no point-and-click device present, and allows the user to access all application commands via the keyboard.

On Windows, main menu shortcuts are usually indicated by it's underlined letter, called a mnemonic. They are activated like so:

  • hold Alt
  • tap the mnemonic
  • release Alt

Menu item shortcuts could have mnemonics as well, and are activated by pressing their mnemonic key (no Alt-modifier necessary at this point). These menu items may also have application-wide shortcuts, normally displayed next to the menu item itself.

Some applications implement system-wide global shortcuts, which activate regardless of which application has the user's focus. These are called hotkeys, so see the [hotkey] tag for those questions.

Shortcuts can consist of a combination of Alt/Option, Ctrl, Shift, (on Macs), and function and character keys. Some applications use key-of-chord like shortcuts, where you press a combination (chord) of the above keys in sequence.

Consult the application's user manual for details on what shortcuts it provides.

Useful Links

1065 questions
693
votes
22 answers

Eclipse HotKey: how to switch between tabs?

How can I switch between opened windows in Eclipse? There is Ctrl+F6, but it's asking me which one I want, but I want switch it like tabs in browser or window in operating system (Cmd/Win+Tab) without file-selection from the list. How to do this…
Skay
  • 8,744
  • 6
  • 24
  • 26
264
votes
14 answers

Is there a hotkey to switch between split window panes?

Visual Studio Code has a hotkey combination to split the current window to 2 or 3 panes: "key": "ctrl + \", "command": "workbench.action.splitEditor" Unfortunately, I can't find a way to switch between such panes without the mouse. My…
bialix
  • 15,976
  • 8
  • 43
  • 61
192
votes
17 answers

How to comment a block in Eclipse?

Does Eclipse have a hot key to comment a block? and to uncomment a block?
snakile
  • 47,358
  • 57
  • 160
  • 231
133
votes
9 answers

Any way (or shortcut) to auto import the classes in IntelliJ IDEA like in Eclipse?

In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically. In NetBeans, this is done with Ctrl + Shift + I. Is any way to do this in IntelliJ IDEA? I searched an equivalent shortcut in google,…
PlainOldProgrammer
  • 2,365
  • 3
  • 16
  • 27
122
votes
8 answers

Find out what process registered a global hotkey? (Windows API)

As far as I've been able to find out, Windows doesn't offer an API function to tell what application has registered a global hotkey (via RegisterHotkey). I can only find out that a hotkey is registered if RegisterHotkey returns false, but not who…
Marek Jedliński
  • 6,528
  • 9
  • 44
  • 55
116
votes
9 answers

How do I hotkey directly to File Search tab in Eclipse

When I use CTRL+H I end up on the Java Search tab. I would very much like a shortcut to go directly to File Search instead. Is that possible? See image here for what I'm talking about:
svrist
  • 6,657
  • 7
  • 38
  • 64
97
votes
8 answers

Ctrl+Enter jQuery in TEXTAREA

How do I trigger something when the cursor is within TEXTAREA and Ctrl+Enter is pressed? Using jQuery. Thanks
HP.
  • 17,550
  • 43
  • 139
  • 240
78
votes
3 answers

Set global hotkeys using C#

I need to capture a key press when my program is not in focus. (ie. Ctrl+Alt+J) and trigger an event in my program. Thus far i have found this dll that appears to be the correct path" [DllImport("user32.dll")]private static extern int…
Crash893
  • 10,590
  • 20
  • 82
  • 118
72
votes
3 answers

Automatic namespaces import

Is there a way in Visual Studio (a hotkey) to automatically import a type (or choosing between known namespaces) like the Ctrl + O in Eclipse?
Enrico Murru
  • 2,309
  • 3
  • 21
  • 24
71
votes
3 answers

VIM, incremental search: How can I jump to the next result and get it highlighted?

When using VIM's incremental search option I usually search and after I got to the first result (it will be highlighted) I use the / key to jump to the next result. But: For this I need to 'cancel' my search and go back to Normal Mode in order to…
zoltanctoth
  • 2,449
  • 5
  • 23
  • 30
70
votes
4 answers

How to delete the current line and add a new line in Notepad++?

How to delete the current line and add a new line in Notepad++? These two operations are very common but I can't find any key setting how to do them in Notepad++. Can any plugin do this job?
linjuming
  • 1,887
  • 4
  • 20
  • 32
49
votes
11 answers

How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?

I'm building an application in C# using WPF. How can I bind to some keys? Also, how can I bind to the Windows key?
w-ll
  • 3,787
  • 2
  • 26
  • 28
46
votes
4 answers

What are cross-browser and cross-OS safe keyboard shortcuts usable for web application?

I am developing a quite large web application, and it is probably a good idea to use hotkeys for some common tasks. However, I discovered that finding safe key combinations is a problem, regarding all different browsers and OSes. For example, Chrome…
Frodik
  • 13,164
  • 22
  • 83
  • 132
44
votes
2 answers

Restrict 'Open Quickly's scope to currently open project in Xcode?

CMD+Shift+O ( ⌘⇧O ) brings up the 'Open Quickly' feature of Xcode. Much like CMD+T in Textmate & Sublime Text 2. Its scope of search seems to include system headers outside of my project. Is there a way to restrict this scope to the currently open…
Abhishek Mishra
  • 4,984
  • 8
  • 34
  • 38
43
votes
6 answers

Hotkey to open TFS Source Control Explorer in Visual Studio 2012?

Currently I have to open Team Explorer and click on Source Control Explorer as below snapshot. I do this very often and need a hotkey for that. What is it then?
Nam G VU
  • 28,311
  • 62
  • 206
  • 338
1
2 3
70 71