Yada
Yada

Reputation: 31225

Annoying eclipse automatically closing quotes

I've always found the eclipse's automatic close quotes and parenthesis features to be useless. For example hitting on a single " will lead to

"<cursor>"

I don't need the second quote. It's annoying to remove afterward. How to turn this feature off?

Update: I now kept the setting on. If you type another quote " it will break through.

Upvotes: 101

Views: 27884

Answers (7)

Yury K.
Yury K.

Reputation: 671

As Allethrin and Graham rightfully mentioned, for most of the cases you'd need "Typing" setting in corresponding sections of the Preferences: enter image description here

Although, it might not be enough for some people.

For those who need it for a Generic Text Editor (i.e. if you struggle with automatically closing quotes in other files, like YAML, etc.), you can turn "auto-closing" off per Language Configuration under Preferences -> TextMate -> Language Configuration -> Selected Content Type -> Auto Closing Pairs. Just uncheck "Enable auto closing": Unchecked "enable auto closing" for YAML language confige

Upvotes: 0

Allethrin
Allethrin

Reputation: 1200

Try Window -> Preferences -> Java -> Editor -> Typing and uncheck the "Strings" checkbox in the "Automatically close" group.

Upvotes: 110

h3dkandi
h3dkandi

Reputation: 1195

You could also hit quote when you want to exit the auto-complete quote. This will put you outside the quote as if you closed it yourself. So this feature doesn't really break the flow of you programing.

Upvotes: 2

random.byte01
random.byte01

Reputation: 11

The location for similar auto quoting capabilities in PyDev for eclipse: Windows -> PyDev -> Editor -> Typing -> "Automatic literal closing."

In order to enable pressing enter to exit the quotes check "Enable link on automatic parentheses or literals closing."

Upvotes: 1

Graham
Graham

Reputation: 261

You need to turn this feature off for all editors: Go to Preferences and in the "type filer text" box type "typing". Then click on each result and un-check all unwanted automatically close options.

Upvotes: 21

jcampbell1
jcampbell1

Reputation: 4529

To turn off auto quotes in Titanium Studio, under preferences -> Titanium Studio -> Editors -> uncheck "Auto-close matching character pairs"

Upvotes: 2

James Van Huis
James Van Huis

Reputation: 5571

Jump out of the quotes by simply hitting Enter when you are done typing the string contents (at least, in the java editor).

Upvotes: 2

Related Questions