Skip to content

Commit 4d15fbf

Browse files
committed
Restructure mac key-repeating help section in README and add command for Cursor. Fixes #9500
1 parent bd2b238 commit 4d15fbf

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

README.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,42 @@ VSCodeVim can be installed via the VS Code [Marketplace](https://marketplace.vis
5757

5858
### Mac
5959

60-
To enable key-repeating, execute the following in your Terminal, log out and back in, and then restart VS Code:
60+
To enable key-repeating, execute one of the following commands in your Terminal depending on the application you are using, log out and back in, and then restart VS Code:
61+
62+
#### VS Code
63+
64+
```sh
65+
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
66+
```
67+
68+
#### VS Code Insider
69+
70+
```sh
71+
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false
72+
```
73+
74+
#### VS Codium
75+
76+
```sh
77+
defaults write com.vscodium ApplePressAndHoldEnabled -bool false
78+
```
79+
80+
#### VS Codium Exploration
81+
82+
```sh
83+
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false
84+
```
85+
86+
#### Cursor
87+
88+
```sh
89+
defaults write "$(osascript -e 'id of app "Cursor"')" ApplePressAndHoldEnabled -bool false
90+
```
91+
92+
#### If necessary, reset global default
6193

6294
```sh
63-
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code
64-
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
65-
defaults write com.vscodium ApplePressAndHoldEnabled -bool false # For VS Codium
66-
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false # For VS Codium Exploration users
67-
defaults delete -g ApplePressAndHoldEnabled # If necessary, reset global default
95+
defaults delete -g ApplePressAndHoldEnabled
6896
```
6997

7098
We also recommend increasing Key Repeat and Delay Until Repeat settings in _System Preferences -> Keyboard_.

0 commit comments

Comments
 (0)