Skip to content

Enabling key-repeating doesn't work for cursor #9500

@matsjfunke

Description

@matsjfunke

if tried:

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

and even cursor specifc:

mdls -name kMDItemCFBundleIdentifier /Applications/Cursor.app 
              kMDItemCFBundleIdentifier = "com.todesktop.230313mzl4w4u92"
defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnabled -bool false
defaults delete -g ApplePressAndHoldEnabled

but i'm still not able to navigate by holding keys down... , i'm probably doing something wrong as i'm new to VS-code / Cursor

Activity

FrankCoder

FrankCoder commented on Apr 1, 2025

@FrankCoder

@matsjfunke Did you close and restart Cursor?

I did exctly what you did, restarted cursor (closed all windows), and I now have key-repeating working in cursor.

matsjfunke

matsjfunke commented on Apr 8, 2025

@matsjfunke
Author

@FrankCoder yes i did

added a commit that references this issue on May 14, 2025
4d15fbf
ykka

ykka commented on May 17, 2025

@ykka

In my case defaults write com.todesktop.230313mzl4w4u92 ApplePressAndHoldEnbabled -bool false didn't work (I got the id using osascript -e 'id of app "Cursor"'.

What worked was defaults write -app Cursor ApplePressAndHoldEnabled -bool false and seems to have precedence over the former setting.

Cursor Version: 0.50.4
VSCode Version: 1.96.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @FrankCoder@ykka@matsjfunke

      Issue actions

        Enabling key-repeating doesn't work for cursor · Issue #9500 · VSCodeVim/Vim