eclipse 烦人的eclipse自动关闭引号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/444845/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Annoying eclipse automatically closing quotes
提问by Yada
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
我一直发现 eclipse 的自动关闭引号和括号功能没用。例如,点击一个 " 将导致
"<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.
更新:我现在保持设置。如果你输入另一个引号“它会突破。
回答by Allethrin
Try Window -> Preferences -> Java -> Editor -> Typing and uncheck the "Strings" checkbox in the "Automatically close" group.
尝试 Window -> Preferences -> Java -> Editor -> Typing 并取消选中“Automatically close”组中的“Strings”复选框。
回答by Graham
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.
您需要为所有编辑器关闭此功能:转到“首选项”并在“类型文件管理器文本”框中键入“打字”。然后单击每个结果并取消选中所有不需要的自动关闭选项。
回答by James Van Huis
Jump out of the quotes by simply hitting Enter when you are done typing the string contents (at least, in the java editor).
输入完字符串内容后(至少在 Java 编辑器中),只需按 Enter 即可跳出引号。
回答by jcampbell1
To turn off auto quotes in Titanium Studio, under preferences -> Titanium Studio -> Editors -> uncheck "Auto-close matching character pairs"
要在 Titanium Studio 中关闭自动引号,请在首选项 -> Titanium Studio -> 编辑器 -> 取消选中“自动关闭匹配的字符对”
回答by h3dkandi
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.
当您想退出自动完成报价时,您也可以点击报价。这将使您置身于报价之外,就像您自己关闭它一样。所以这个功能并没有真正打破你的编程流程。
回答by random.byte01
The location for similar auto quoting capabilities in PyDev for eclipse: Windows -> PyDev -> Editor -> Typing -> "Automatic literal closing."
PyDev for eclipse 中类似自动引用功能的位置:Windows -> PyDev -> Editor -> Typing ->“自动文字关闭”。
In order to enable pressing enter to exit the quotes check "Enable link on automatic parentheses or literals closing."
为了启用按回车键退出引号,请选中“启用自动括号或文字关闭时的链接”。