Questions tagged [key-bindings]

Anything related to key-bindings (a.k.a. "keyboard shortcuts", "hotkeys", etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations.

Anything related to key-bindings (a.k.a. keyboard shortcuts, hotkeys, etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations. For example, pressing alt + F4 closes an application on Windows, while ctrl + C copies the selected text into the clipboard for both Linux and Windows GUI applications.

See Wikipedia on keyboard shortcuts.

1731 questions
32
votes
3 answers

How do I hide the bottom console text output area in Sublime Text 3?

This is probably really simple, but it's frustrating me so much. I'm using Sublime Text 3. Sometimes my plugins output code to a little window at the bottom like this: And I can't hide it no matter what I try. The only way I can get rid of it is by…
phocks
  • 2,933
  • 5
  • 27
  • 28
31
votes
5 answers

Emacs key binding in Eclipse IDE

I am an Emacs lover probably because I love the key binding and I am able to do things very quickly. I also use Eclipse IDE for my Java/Android/Python/ development because it is free, most of my peers use it, and it works. I find myself…
Peter Delaney
  • 5,278
  • 9
  • 33
  • 40
31
votes
1 answer

Show Emacs keybindings which start with a particular key

I've read this, but my question is different. I'd like to know how to view key-bindings in Emacs which start with a particular key. I'd like to bind f2, but would like to know what it's currently bound to. Pressing C-h m prompts for the key…
SabreWolfy
  • 5,392
  • 11
  • 50
  • 73
29
votes
4 answers

How to disable Ctrl-Click in VS Code

I want to know if it's possible to remove the key bind on Ctrl-Click for the goToDefinition (F12) editor action. This is so annoying, every time i try to Ctrl+C/V it trigger and go to the definition cause I'm holding Ctrl while I'm highlighting the…
WoofWoofDude
  • 617
  • 1
  • 7
  • 13
27
votes
12 answers

Visual studio code comment in HTML files

I am trying Visual Studio Code lately and i've noticed that when i try to add a line comment in an HTML file (using Ctrl+/ or Ctrl+K Ctrl+C) instead of this: , i get this {# #}. In JS or CSS files the key bindings work just fine and produce…
Makis K.
  • 877
  • 2
  • 9
  • 16
27
votes
2 answers

notepad++ tab to left

If I press tab the line moves to right, what I must press to move line to left?
kusanagi
  • 14,296
  • 20
  • 86
  • 111
27
votes
6 answers

Keybinding a RelayCommand

I'm using the RelayCommand in my app. It's great for putting the code in the viewmodel, but how do I bind keystrokes to my command? RoutedUICommand has its InputGestures property, which makes the command automatically be invoked when I press the…
Joe White
  • 94,807
  • 60
  • 220
  • 330
26
votes
1 answer

Vim: list free keybindings

Is there some way to list unused keybinds? I guess if the answer is no, it would be a good feature-request (especially for these undecided types like myself). Edit: To make it more precise, I know you can list bindings with: :map :nmap :imap FFI…
derenio
  • 2,633
  • 2
  • 19
  • 15
25
votes
7 answers

Binding M- / M- in Emacs 23.1.1

I'm trying to put in a feature that I miss from Eclipse, where Alt+[Up/Down] transposes the lines up or down, but can not for the life of me figure out how to assign to these keys properly. I am using it in -nw mode (so just in a shell window), and…
liam
  • 3,830
  • 6
  • 32
  • 31
24
votes
2 answers

How to find command by pressing keybinding in VSCode

I'm looking for a way for VS Code to tell me the command name for a keybinding. In Emacs, this functionality is available under describe-key (C-h k). For example, in VS Code ⌘ A maps to editor.action.selectAll. So ideally I'd press a keyboard…
Razzi Abuissa
  • 3,337
  • 2
  • 28
  • 29
23
votes
8 answers

How can I assign the 'Close on Escape-key press' behavior to all WPF windows within a project?

Is there any straightforward way of telling the whole WPF application to react to Escape key presses by attempting to close the currently focused widow? It is not a great bother to manually setup the command- and input bindings but I wonder if…
Peter Perháč
  • 20,434
  • 21
  • 120
  • 152
22
votes
2 answers

Can Emacs differentiate between ctrl-r and ctrl-shift-r?

I'd like to bind Ctrl + R to 'isearch-backward and bind Ctrl + Shift + R to 'tags-apropos but I can't distinguish between the two key presses. Can emacs differentiate between Ctrl + R and Ctrl + Shift + R? What should go into my .emacs file to…
Alex B
  • 24,678
  • 14
  • 64
  • 87
22
votes
4 answers

How to Display Working Keyboard Shortcut for Menu Items?

I am trying to create a localizable WPF menu bar with menu items that have keyboard shortcuts - not accelerator keys/mnemonics (usually shown as underlined characters that can be pressed to directly select a menu item when the menu is already open),…
O. R. Mapper
  • 20,083
  • 9
  • 69
  • 114
21
votes
5 answers

Vim: remap key to toggle line numbering

I added: set number nnoremap :set nonumber! to my vimrc file. Basically what it's supposed to do is let me press F2 to toggle line numbering but it's not working. What have I done wrong?
Nope
  • 34,682
  • 42
  • 94
  • 119
20
votes
4 answers

How to use Key Bindings instead of Key Listeners

I'm using KeyListeners in my code (game or otherwise) as the way for my on-screen objects to react to user key input. Here is my code: public class MyGame extends JFrame { static int up = KeyEvent.VK_UP; static int right =…
user1803551
  • 12,965
  • 5
  • 47
  • 74