如何在 Eclipse 中启用拼写检查?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8786880/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:49:27  来源:igfitidea点击:

How do I enable spell checking in Eclipse?

eclipseeclipse-pluginspell-checking

提问by Bmis13

Is there any way to enable code spell checking in Eclipse? I misspell words fairly often.

有没有办法在 Eclipse 中启用代码拼写检查?我经常拼错单词。

For example: void spllmstake()=> void spellmistake()

例如: void spllmstake()=>void spellmistake()

采纳答案by mliebelt

I have found a spell checker and proved it (with your example), and it seems to work. Do the following steps:

我找到了一个拼写检查器并证明了它(用你的例子),它似乎有效。执行以下步骤:

  • Download espell checkeras zip file
  • Call Help > Install New Software > Add... > Archive...
  • Insert the path and file name of the zip file.
  • Do the normal installation with restart
  • Go to Window > Preferences > Spelling > AspectJ, Java, ...
  • Ensure that Check Namesis selected.
  • espel checker下载为zip 文件
  • 称呼 Help > Install New Software > Add... > Archive...
  • 插入 zip 文件的路径和文件名。
  • 重启即可正常安装
  • Window > Preferences > Spelling > AspectJ, Java, ...
  • 确保Check Names选中。

In your example, the word spllmstakeis marked as wrong, as is spellmistake. spellMistake(like two words) works well.

在您的示例中,单词spllmstake被标记为错误,原样spellmistakespellMistake(就像两个词)效果很好。

回答by dogbane

Eclipse has a built-in Spell Checker. Go to Window > Preferences > General > Editors > Text Editors > Spellingto enable it.

Eclipse 有一个内置的拼写检查器。转到“窗口”>“首选项”>“常规”>“编辑器”>“文本编辑器”>“拼写”以启用它。

回答by Thilina Rubasingha

I have founded spell checker from eclipse marketplace. It is JDT spell checker and here is the description

我从 eclipse 市场创建了拼写检查器。它是 JDT 拼写检查器,这里是描述

The aim is to provide spelling support for words contained in the names of Java artifacts: Interfaces, Classes, Methods, ... Splitting out the names using regular naming patters for Java names.

目的是为包含在 Java 工件名称中的单词提供拼写支持:接口、类、方法、...使用 Java 名称的常规命名模式拆分名称。

Eclipse marketplace - http://marketplace.eclipse.org/content/jdt-spelling#.U8drE7E3n34

Eclipse 市场 - http://marketplace.eclipse.org/content/jdt-spelling#.U8drE7E3n34

Git hub - https://github.com/hendrens/jdt.spelling

Git 中心 - https://github.com/hendrens/jdt.spelling