Skip to content

Add Cursor to the key-repeating help section in README #9622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,48 @@ VSCodeVim can be installed via the VS Code [Marketplace](https://marketplace.vis

### Mac

To enable key-repeating, execute the following in your Terminal, log out and back in, and then restart VS Code:
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:

#### VS Code

```sh
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
```

#### VS Code Insider

```sh
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false
```

#### VS Codium

```sh
defaults write com.vscodium ApplePressAndHoldEnabled -bool false
```

#### VS Codium Exploration

```sh
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false
```

#### Cursor

```sh
defaults write -app Cursor ApplePressAndHoldEnabled -bool false
```

If that does not work for Cursor, try using the domain of the app:

```sh
defaults write "$(osascript -e 'id of app "Cursor"')" ApplePressAndHoldEnabled -bool false
```
Comment on lines +92 to +96
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we have reason to believe -app won't work for some users, let's just nix this part


#### If necessary, reset global default

```sh
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
defaults write com.vscodium ApplePressAndHoldEnabled -bool false # For VS Codium
defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false # For VS Codium Exploration users
defaults delete -g ApplePressAndHoldEnabled # If necessary, reset global default
defaults delete -g ApplePressAndHoldEnabled
```

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