恼人的 Eclipse 自动关闭引号

我总是发现日食的自动结束语和括号功能是无用的。例如,勾搭上一个单身汉”会导致

"<cursor>"

我不需要第二个引用。之后删除很烦人。如何关闭这个功能?

更新: 我现在保持设置不变。如果您键入另一个引号“ ,它将突破。

26779 次浏览

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

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

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

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.

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

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.