Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable auto-pairing of characters in Textmate 2?

Tags:

textmate2

TextMate 1 had a preference called "Auto-pair characters (quotes etc.)" that would allow you to enable or disable the auto pairing functionality.

Is it possible to disable this feature in TextMate 2?

like image 204
TizzyTool Avatar asked Feb 17 '13 06:02

TizzyTool


2 Answers

You can disable it for a given bundle as explained in this issue on GitHub. Basically you have to edit an option file of the bundle and add smartTypingPairs = ( ); near the end of the file.

I don't know if this can be generalized using the .tm_properties files but you are welcome to try (and report your results).

There is also a user defaults key for this:

defaults write com.macromates.TextMate disableTypingPairs -bool YES
like image 98
Simon Avatar answered Oct 31 '22 14:10

Simon


Automatic "Typing Pairs" is a TextMate 2 Hidden Setting

When you type an opening brace, parenthesis, quote character, or similar, TextMate will insert the closing character.

Disable via Terminal:

defaults write com.macromates.TextMate disableTypingPairs YES
like image 11
pkamb Avatar answered Oct 31 '22 16:10

pkamb