在 Eclipse 中永久关闭拼写检查
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6295066/
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
Turn off spell checking in Eclipse for good
提问by darius
Every time I create a new workspace in Eclipse I have to turn off the spell checking via Preferences. (Preferences->General->Editors->Text Editors->Spelling->Enable Spell Checking)
每次我在 Eclipse 中创建一个新工作区时,我都必须通过首选项关闭拼写检查。(首选项->常规->编辑器->文本编辑器->拼写->启用拼写检查)
This is very irritating. How do I turn off the spell checking for good? I.e. the spell checker is disabled when I create a new workspace and I can turn it on should I want to use it.
这是非常令人恼火的。如何永久关闭拼写检查?即当我创建一个新工作区时拼写检查器被禁用,如果我想使用它,我可以打开它。
采纳答案by Matt Ball
It's not a perfect fix, but you can copy existing workspace preferences into any workspace. I keep a separate .epf
(Eclipse preferences file, I guess) that I just import into every new workspace I create:
这不是一个完美的修复,但您可以将现有的工作区首选项复制到任何工作区。我保留了一个单独的.epf
(我猜是 Eclipse 首选项文件),我只是将其导入到我创建的每个新工作区中:
File → Import... → General → Preferences → Next > From preference file
文件 → 导入... → 常规 → 首选项 → 下一步 > 从首选项文件
Related
有关的
回答by David
Preferences->General->Editors->Text Editors->Spelling Uncheck the box "Enable spell checking"
Preferences->General->Editors->Text Editors->Spelling 取消选中“启用拼写检查”框
回答by fredrik
There are some ways for sharing preferences, but it doesn't come with the platform. The one I use is now available as an attachment to https://bugs.eclipse.org/bugs/show_bug.cgi?id=334016or more particular as attachment https://bugs.eclipse.org/bugs/attachment.cgi?id=196866
有一些共享偏好的方法,但它不随平台提供。我使用的现在可以作为https://bugs.eclipse.org/bugs/show_bug.cgi?id=334016的附件或更具体的附件https://bugs.eclipse.org/bugs/attachment.cgi ?id=196866
Install into your Eclipse. Then you can export selected preferences to an .epf file. Also add a preference (!) in Preferences > General > Common Preferences which will share your settings across newly created workspaces.
安装到您的 Eclipse 中。然后您可以将选定的首选项导出到 .epf 文件。还要在首选项 > 常规 > 通用首选项中添加一个首选项 (!),它将在新创建的工作区之间共享您的设置。
I use this all the time and though it is not perfect, it does save a lot of effort in keeping my preferences aligned across workspaces.
我一直在使用它,虽然它并不完美,但它确实节省了很多精力,可以让我的偏好在不同的工作空间保持一致。
回答by William
If you are writing Java code, Window -> Preferences -> Java -> JDT Spelling
如果您正在编写 Java 代码,Window -> Preferences -> Java -> JDT Spelling