Skip to content

Instantly share code, notes, and snippets.

@levihuayuzhang
Last active February 26, 2026 11:48
Show Gist options
  • Select an option

  • Save levihuayuzhang/abaddfac139a91cc29797ce184b2527d to your computer and use it in GitHub Desktop.

Select an option

Save levihuayuzhang/abaddfac139a91cc29797ce184b2527d to your computer and use it in GitHub Desktop.
Disable press & hold on MacOS VSCode.
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 write com.exafunction.windsurf ApplePressAndHoldEnabled -bool false          # For Windsurf
defaults delete -g ApplePressAndHoldEnabled                                           # If necessary, reset global default

Ref:

  1. https://github.com/VSCodeVim/Vim?tab=readme-ov-file#mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment