Turn Off Parenthesis Matching in Sublime Text 2

46

7

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.

Juanito Fatas

Posted 2012-02-21T02:57:43.847

Reputation: 649

Answers

62

Set this in your User settings

"auto_match_enabled" : false

Jasper Bekkers

Posted 2012-02-21T02:57:43.847

Reputation: 756

Can you make it a toggle switch? – laggingreflex – 2012-08-11T23:08:01.853

11You'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 – 2012-10-03T11:38:01.797

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"
    }
} 

pelms

Posted 2012-02-21T02:57:43.847

Reputation: 8 283

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

Sam Rastin

Posted 2012-02-21T02:57:43.847

Reputation: 130

Thanks Sam! it should be there. But I set "autoMatchEnabled":false @Global.sublime-settings, restart, still not working. – Juanito Fatas – 2012-02-23T02:33:47.100