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

5507 questions
1956
votes
22 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
  • 26,495
  • 13
  • 56
  • 75
1861
votes
22 answers

Command to collapse all sections of code?

In Visual Studio, is there a command to collapse/expand all the sections of code in a file?
Mr. Flibble
  • 26,564
  • 23
  • 69
  • 100
1408
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
  • 21,903
  • 14
  • 44
  • 51
1220
votes
16 answers

How can I navigate back to the last cursor position in Visual Studio Code?

What is the keyboard shortcut to navigate back to the last cursor position in Visual Studio Code?
kimsagro
  • 15,513
  • 17
  • 54
  • 69
1136
votes
21 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
  • 17,737
  • 28
  • 75
  • 123
1097
votes
24 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
  • 54,599
  • 30
  • 149
  • 186
983
votes
34 answers

Multiline editing in Visual Studio Code

Is it possible to enable multiline editing like in Sublime Text? For example, press Ctrl to place additional cursor carets and being able to write/delete on multiple places in the document at one time.
AfBu
  • 9,949
  • 3
  • 13
  • 7
913
votes
20 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
909
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
  • 23,151
  • 18
  • 48
  • 71
833
votes
12 answers

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

Is there any way of auto importing in Android Studio. Something like the auto-import feature that Eclipse has when you use the keybinding: SHIFT + CTRL + O in Android Studio? Currently I have only found CTRL + ALT + O, which ask each individual…
Michał Tajchert
  • 10,333
  • 4
  • 30
  • 47
764
votes
28 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
  • 29,617
  • 32
  • 119
  • 165
722
votes
9 answers

Shortcut to exit scale mode in VirtualBox

What is the shortcut to exit scaled mode in Oracle VM VirtualBox, Windows 7/10 host?
foki
  • 8,624
  • 6
  • 33
  • 32
625
votes
42 answers

How to comment multiple lines in Visual Studio Code?

I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code. Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If yes, how to do it?
gog
  • 11,788
  • 23
  • 67
  • 129
598
votes
28 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,436
  • 5
  • 22
  • 25
589
votes
14 answers

Select all occurrences of selected word in VSCode

Are there any tricks/extensions to select all instances of selected word(s) in Visual Studio Code to facilitate editing or deleting those instances without search and replace? Perhaps something similar to Alt+F3 in Sublime Text?
Alaa M. Tekleh
  • 6,938
  • 4
  • 16
  • 29
1
2 3
99 100