46

I have questions about turn off parenthesis matching. Does anyone know how to turn off parenthesis matching?

example:

When I type a (, it will automatically add ), becomes ().

It's pretty nice for editing plain text. But quite annoying while editing clojure files.

61

Set this in your User settings

"auto_match_enabled" : false
  • Can you make it a toggle switch? – laggingreflex Aug 11 '12 at 23:08
  • 11
    You'd be better off adding that line to the User settings (Preferences > Settings - User) rather than global so that they're not overwritten by updates. – pelms Oct 3 '12 at 11:38
9

You can toggle this setting by adding a key binding to 'Preferences > Key Bindings - User'.
e.g. to make Ctrl+Shift+p toggle the setting, use:

{
    "keys": ["ctrl+shift+p"],
    "command": "toggle_setting",
    "args":
    {
        "setting": "auto_match_enabled"
    }
} 
2

It sounds like you need to change autoMatchEnabled to false under File Type Preferences to disable auto pairing. Read more about it: http://www.sublimetext.com/docs/file-type-preferences

  • Thanks Sam! it should be there. But I set "autoMatchEnabled":false @Global.sublime-settings, restart, still not working. – Juanito Fatas Feb 23 '12 at 2:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.