Skip to main content

Visual Studio Code

Enable "press key and hold" functionality on macOS

macOS has a feature where holding a key will bring up alternative characters. This behaviour affects Visual Studio Code, which can get in the way.

To disable the alternative character menu in Visual Studio Code, run:

$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false

To enable the alternative character menu in Visual Studio Code, run:

$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool true