Questions tagged [keyboard-shortcuts]

Keyboard shortcuts provide quick access to 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

4979 questions
1745
votes
20 answers

How to duplicate a whole line in Vim?

How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper or Ctrl+Alt+↑/↓ in Eclipse?
sumek
  • 24,063
  • 10
  • 50
  • 64
1278
votes
15 answers

How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the command to jump to the end of the line that I am currently on?
salt.racer
  • 20,273
  • 14
  • 41
  • 50
908
votes
19 answers

How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour) It's a feature that I use constantly, and am struggling using Visual Studio Code without it.
Chris
  • 43,908
  • 26
  • 122
  • 165
815
votes
11 answers

What is the shortcut to Auto import all in Android Studio?

Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio? I have found only Ctrl+Alt+O which ask for each thing, and I have to press Alt+Enter to accept it. No way to do it faster?
Michał Tajchert
  • 10,021
  • 4
  • 27
  • 46
810
votes
17 answers

How to move the cursor word by word in the OS X Terminal

I know the combination Ctrl+A to jump to the beginning of the current command, and Ctrl+E to jump to the end. But is there any way to jump word by word, like Alt+←/→ in Cocoa applications does?
Arne
746
votes
13 answers

How do I search for files in Visual Studio Code?

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files. Is this feature implemented in Visual Studio Code and is there a shortcut for it?
Dofs
  • 13,655
  • 25
  • 72
  • 120
684
votes
9 answers

Shortcut to exit scale mode in VirtualBox

What is the shortcut to exit scale mode in Oracle VirtualBox, Windows 7 host?
foki
  • 7,995
  • 6
  • 28
  • 28
641
votes
26 answers

Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not using clipboard to store those lines. So is it possible?
Xinus
  • 26,861
  • 26
  • 111
  • 160
566
votes
27 answers

Go to Matching Brace in Visual Studio?

Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it. (VB.NET version of this Question: Keyboard shortcut for…
thepocketwade
  • 6,116
  • 5
  • 20
  • 25
536
votes
11 answers

Collapse all methods in Visual Studio Code

In Visual Studio Professional, we have a shortcut key, Ctrl + M Ctrl + O to collapse all methods and properties in a class. How can I do a similar thing in Visual Studio Code? I know there are shortcut keys like Ctrl + Shift + [, but this does not…
eadam
  • 15,903
  • 15
  • 41
  • 70
450
votes
31 answers

Visual Studio : short cut Key : Duplicate Line

Is there a shortcut for Duplicate Line command in Visual Studio 2008? Some similar examples: in Notepad++, I can duplicate the current line with: Ctrl+D in EditPlus: Ctrl+J in NetBeans: Ctrl+Shift+↓/↑ in Eclipse, Ctrl+Alt+↓/↑ in Vi/Vim, yyp etc.
Posto
  • 6,570
  • 7
  • 41
  • 55
441
votes
10 answers

How to select all instances of a variable and edit variable name in Sublime

If I select a variable (not just any string) in my code, all other instances of that variable get a stroke (white outline) around them: Is there a keyboard shortcut that will let me select all of those instances of the variable and edit them all at…
Oskar Persson
  • 7,267
  • 12
  • 48
  • 107
418
votes
9 answers

Eclipse Optimize Imports to Include Static Imports

Is there anyway to get Eclipse to automatically look for static imports? For example, now that I've finally upgraded to Junit 4, I'd like to be able to write: assertEquals(expectedValue, actualValue); hit Ctrl + Shift + O and have Eclipse…
Paul Croarkin
  • 13,719
  • 14
  • 73
  • 108
399
votes
10 answers

IntelliJ shortcut to show a popup of methods in a class that can be searched

I'm switching over from Eclipse to IntelliJ. In Eclipse, if you do Ctrl+O in the editor, it will show a hover popup that allows you to search for a method in the class you're editing. What is the equivalent shortcut for that in IntelliJ?
Glide
  • 17,559
  • 21
  • 70
  • 114
395
votes
7 answers

Eclipse jump to closing brace

What is the keyboard short cut in Eclipse to jump to the closing brace of a scope?
Trastle
  • 4,905
  • 5
  • 23
  • 19
1
2 3
99 100