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

1159 questions
712
votes
24 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
  • 9,343
  • 6
  • 27
  • 28
403
votes
20 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
  • 20,053
  • 8
  • 46
  • 63
199
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
  • 52,936
  • 62
  • 169
  • 241
154
votes
12 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,725
  • 5
  • 22
  • 30
141
votes
7 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
  • 7,088
  • 11
  • 47
  • 57
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
  • 7,042
  • 7
  • 44
  • 67
110
votes
10 answers

Ctrl + Enter using jQuery in a TEXTAREA

How do I trigger something when the cursor is within TEXTAREA and Ctrl+Enter is pressed? I am using jQuery.
HP.
  • 19,226
  • 53
  • 154
  • 253
91
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
  • 11,428
  • 21
  • 88
  • 123
88
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
  • 2,117
  • 4
  • 23
  • 32
86
votes
4 answers

Keyboard Shortcut to Cycle through Windows of same Application in Windows 7

I would have expected this to be a very simple task: switching between windows of the same application, but I can't seem to find the shortcut to do it. I generally have several windows of applications like Chrome (each window holding all the tabs…
balajeerc
  • 3,998
  • 7
  • 35
  • 51
78
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,788
  • 5
  • 26
  • 32
73
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,313
  • 4
  • 21
  • 24
57
votes
5 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
  • 14,986
  • 23
  • 90
  • 141
53
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,895
  • 2
  • 31
  • 29
45
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
  • 5,002
  • 8
  • 36
  • 38
1
2 3
77 78