Skip to content

Commit e6390d0

Browse files
committed
Add example to README
1 parent 7a888c9 commit e6390d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Keybindings for VS Code
22

33
- [Why](#why)
4+
- [Example](#example)
45
- [How to use these files](#how-to-use-these-files)
56
- [Unmapping](#unmapping)
67
- [VS Code Extension](#vs-code-extension)
@@ -12,6 +13,10 @@ Code uses key combinations that are idiomatic to each platform. "Find" might be
1213

1314
This repo keeps an up-to-date dump of key bindings for Code on each operating system, which can be used to apply default keys for another OS, or remove Code's default keys entirely.
1415

16+
# Example
17+
18+
Situation: you are used to working on Windows but you are currently on a Mac. You notice Ctrl+Z doesn't work, because on a Mac the default binding is Cmd+Z, which is annoying because it breaks your muscle memory, interrupting your flow state. You open the keybindings file and paste macos.negative.keybindings.json. This removes the default Mac keybindings. Then you paste windows.keybindings.json. This adds default Windows keybindings. Ctrl+Z now works.
19+
1520
# How to use these files
1621

1722
Press `F1` or `Ctrl Shift P` or `Cmd Shift P` to open the "Show All Commands" search box, then search for "keyboard" and choose "Preferences: Open Keyboard Shortcuts (JSON)". This will open a new editor file containing the custom key combinations you've already configured - be sure not to overwrite these. Paste in the contents of the file you want - that's it! For example, if you're on Linux but want to use Mac keys, paste the contents of `macos.keybindings.json` into your editor.

0 commit comments

Comments
 (0)