535 votes
Accepted

Selecting columns in Visual Studio Code

In Visual Studio Code version 1.0, you can now select columns by holding down Shift+Alt, then click and drag with the mouse. This can also be done using just the keyboard by holding down Ctrl+Shift+...
tayopi's user avatar
  • 5,516
155 votes

Selecting columns in Visual Studio Code

On macOS: Shift+Option and mouse, or Shift+Option+Cmd and arrow keys Screenshot:
DrStrangepork's user avatar
93 votes

Map capslock to control in Windows 10

There is now a solution directly from Microsoft for mapping caps lock to the control key called PowerToys. PowerToys does not involve using a third party tool or modifying the registry by hand (which ...
Snap Shot's user avatar
  • 2,278
37 votes

Selecting columns in Visual Studio Code

For the ones who have tried to use the Alt Key + Mouse Selection, and failed. Try to Click the menu selection as follows: Menu bar > Selection > {Click} Switch to Ctrl+Click for Multi Cursor. ...
Calibr3's user avatar
  • 471
26 votes

How to prevent VScode from closing editor when pressing ctrl+w with no tabs open?

Go to File -> Preferences -> Keyboard Shortcuts (or press Ctrl+K Ctrl+S). Find the "Close Window" setting with Ctrl+W as the Keybinding. Right click and remove the key binding or edit it to another ...
Ryan Grange's user avatar
25 votes

Map capslock to control in Windows 10

I use the following to send CTRL for the CAPS LOCK key, send ALT for the CTRL key, and send CAPS LOCK for the ALT key. CTRL is to the left of "A" where God intended it, ALT is below SHIFT, ...
mnemotronic's user avatar
24 votes

ALT+arrow moving between words in zsh and iTerm2

What worked best for me in regards to making iTerm2's command line navigation more intuitive for me (I am a young adult who didn't grow up on a command line, but I've spent a lot of time in text ...
loganjones16's user avatar
15 votes

Dot instead of comma on numerical keyboard

Solved this in Windows 10 with Microsoft Keyboard Layout Creator 1.4 https://www.microsoft.com/en-us/download/details.aspx?id=102134 It requires .Net Framework 2.0, but I have latest 4.8. Open ...
Sergey Senkov's user avatar
13 votes

Selecting columns in Visual Studio Code

As none of the existing answers mention this: The simplest way to achieve the desired result (as of April 2018 version 1.23) is to middle click and drag.
Torantula's user avatar
  • 131
10 votes

Selecting columns in Visual Studio Code

I just published an extension for Visual Studio Code that converts a multi-line selection into a column selection. It mimics TextMate's Toggle Column Selection command and serves as an alternate ...
Erik P. Hansen's user avatar
9 votes

Selecting columns in Visual Studio Code

As of Visual Studio Code 1.2, they have full column selection. See Column (box) selection
Steve's user avatar
  • 517
8 votes

bash home/end/delete key is inserting a tilde, or if preceded by escape key, [1~ [3~

Check for installation of Readline When this happens on a minimal installation of recent Debian/Ubuntu, it's probably because you haven't installed the readline-common package. Simply installing the ...
gertvdijk's user avatar
  • 3,536
8 votes

Map capslock to control in Windows 10

I used to use AutoHotKey to do this. I'd have a link in the startup directory to run a very basic ahk script: Capslock::Ctrl The thing is, Autohotkey isn't run as Administrator so it won't affect ...
loxaxs's user avatar
  • 229
8 votes

Map capslock to control in Windows 10

The inexhaustible sysinternals toolbox also provides a little program just for switching capslock with control -- Ctrl2Cap Ctrl2cap is a kernel-mode device driver that filters the system's keyboard ...
Ernst's user avatar
  • 81
8 votes

Selecting columns in Visual Studio Code

For all you visual learners, there is (as of version at least version 1.55) a graphical menu way to turn it on and a even faster way to turn it off. Go to Selection \ Column Selection Mode to toggle ...
wruckie's user avatar
  • 300
7 votes

How to prevent VScode from closing editor when pressing ctrl+w with no tabs open?

This is a known bug: #54583 Closing last editor with Ctrl+W closes VS Code (regression), which seems to be a reversion to a previous behavior. The solution is found in another bug-report: #53730 User ...
harrymc's user avatar
  • 482k
6 votes

Map capslock to control in Windows 10

This is the script to swap CTRL and CAPS LOCK keys: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,...
ady's user avatar
  • 161
6 votes

ALT+arrow moving between words in zsh and iTerm2

I can't speak for iTerm but these are the keybindings I used to solve this problem under GNOME Terminal, on Fedora 19, running ZSH 5.0.7 with Oh-my-zsh: bindkey "\e[1;3C" forward-word ...
rivanov's user avatar
  • 195
6 votes

How to bind Option-Delete to backward-delete-word in zsh vi mode in tmux and alacritty terminal

To bind Alt-Backspace (Alt is Option on a Mac, isn't it?) to delete word backwards, try: bindkey '^[^?' backward-kill-word backward-kill-word (which is bound to Alt-Backspace in emacs mode) deletes ...
bewilderex63's user avatar
6 votes
Accepted

How can I revert Caps Lock key mapping in Windows 10

Do this : Use regedit and position to the key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout. Right-click the item Scancode Map and select Delete Reboot.
harrymc's user avatar
  • 482k
5 votes

Map capslock to control in Windows 10

If, for some reason, you don't want to run third-party tools, it's possible to do this yourself with a bit of C. Thanks to Susam Pal's brilliant answer, I put the snippet below together. It's ...
kristianlm's user avatar
5 votes
Accepted

Vim copy preserving cursor location

One problem I see is that noremap maps the value of the left-hand side to the value of the right-hand side without remapping. Basically, the right-hand side is always considered as just built-in ...
Andrew Radev's user avatar
5 votes
Accepted

How can I change key bindings in MAMP using "and"/"not" logic?

To make a keybinding with AND, press enter, then press both keys you want to set. It will then be presented as KEY1 KEY2. To make a keybinding with OR, press enter, press the key you want to bind and ...
NekoEd's user avatar
  • 68
5 votes

How to `Ctrl+C` copy to the system clipboard using vscodevim extension in vscode/codium without using the `v` mode's system clipboard register `"*y`?

The problem of how to copy to the system clipboard can be solved by changing or deleting the keybinding Ctrl+C for the command extension.vim_ctrl+c in the Keyboard shortcut settings Search for "...
questionto42's user avatar
  • 2,331
4 votes

ALT+arrow moving between words in zsh and iTerm2

To supplement loganjones16's answer, here is a screenshot of the Natural Text Editing menu item:
Greenonline's user avatar
  • 2,325
4 votes

Dot instead of comma on numerical keyboard

Microsoft Keyboard Layout Creator Worked for making a Swedish keyboard numpad produce dot instead of comma. Brief overview for Windows 10: install and run downloaded app. load existing keyboard (...
user19496's user avatar
  • 1,490
4 votes
Accepted

Dot instead of comma on numerical keyboard

I found it! It took "only" 2 years. I used Keyboard Layout Manager (unfortunately the website is down). After installing (run as admin!) click New, select new name, your language and your current ...
alex's user avatar
  • 731
4 votes

Run script when power button pressed

Your question is answered in the EXAMPLE section of man acpid. I will adapt to your needs. As a root create a file named /etc/acpi/events/power with contents like this: event=button/power action=/...
FedKad's user avatar
  • 514
4 votes
Accepted

Is there a way of mapping a key combination of a computer type a character?

Keyboard Remapping The value Scancode Map at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout allows keys to behave as if another key (or no key) have been pressed. It is normally ...
Mark's user avatar
  • 786
4 votes

How to bindkey alt+delete to kill word forward in zsh?

Finally, I found the answer, it should be bindkey '^[[3;3~' kill-word .
chener's user avatar
  • 171

Only top scored, non community-wiki answers of a minimum length are eligible