Skip to content

Instantly share code, notes, and snippets.

@exogen
Last active June 7, 2016 21:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exogen/58614806ca83e0b69c61 to your computer and use it in GitHub Desktop.
Save exogen/58614806ca83e0b69c61 to your computer and use it in GitHub Desktop.
Fix Mac smart quote shortcuts
// Put this file at ~/Library/KeyBindings/DefaultKeyBinding.dict
// You may need to run: mkdir ~/Library/KeyBindings
{
"~[" = (insertText:, "\U2018"); // Option-[ inserts left single quote
"~]" = (insertText:, "\U2019"); // Option-] inserts right single quote
"~{" = (insertText:, "\U201c"); // Option-Shift-[ inserts left double quote
"~}" = (insertText:, "\U201d"); // Option-Shift-] inserts right double quote
}
@paulathevalley
Copy link

This is the best.

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