简体   繁体   English

在 IntelliJ IDEA 上禁用拼写检查

[英]Disable spell checking on IntelliJ IDEA

I'm trying to disable spell checking in MacOS's IntelliJ IDEA version 8.1.我试图在 MacOS 的 IntelliJ IDEA 8.1 版中禁用拼写检查。

How can I disable it?我怎样才能禁用它?

Follow :跟随 :

File >> Settings >> Editor >> Inspections >> Spelling >> Typo

-> Uncheck the options that you want to disable. ->取消选中要禁用的选项。

Source for more details - Spellchecking with intelliJ更多详细信息来源- 使用 intelliJ 进行拼写检查

对于 OSX 上的 12.1.6:

Preferences->Inspections->Spelling

I've put together a "visual solution" here (inspired by a previous solution above/below by @user277236 in this forum!).我在这里整理了一个“视觉解决方案”(灵感来自此论坛中@user277236 上面/下面的先前解决方案!)。

In Webstorm you can either:在 Webstorm 中,您可以:

  1. Disable spell checking entirely , or完全禁用拼写检查,或
  2. Disable spell checking selectively (eg just the code), but enable for some others (eg comments).有选择地禁用拼写检查(例如仅代码),但启用其他一些(例如注释)。

I'm on MacOS Webstorm (version 2016.1.2).我在 MacOS Webstorm(版本 2016.1.2)上。 First thing first, go to the "Inspection" pane like this...首先,像这样转到“检查”窗格...

Webstorm -> Preferences -> search for "Inspections" 

or...要么...

Webstorm -> Preferences -> Editor -> Inspections

Within the Inspection search box, search "Spelling".在检查搜索框中,搜索“拼写”。

Option 1 - Disable spell-checking entirely选项 1 - 完全禁用拼写检查

在此处输入图片说明

Option 2 - Disable spell-checking selectively选项 2 - 有选择地禁用拼写检查

在此处输入图片说明

I've gone for option 2 myself.我自己选择了选项 2。 This seems to work for me so far.到目前为止,这似乎对我有用。

In Windows and Android 2.3 ...在 Windows 和 Android 2.3 ...

File -> Settings -> Inspections -> Spelling ...文件 -> 设置 -> 检查 -> 拼写...

使用类/方法/字段的注解

@SuppressWarnings("SpellCheckingInspection")

update for 2020 2020 年更新

File >> Settings >> Editor >> Inspections >> Proofreading (uncheck all)

在此处输入图片说明

对于 Android Studio,我直接在“项目设置”下找到了“检查”,而不是在“IDE 设置/编辑器”下。

他们需要像格式化程序一样引入@spellcheck:off

如果要在文件中进行抑制,可以在文件中使用注释,例如<!--suppress SpellCheckingInspection -->在 html 中。

On Android Studio version 1.1 on Mac setting off Spelling from File menu does not work.在 Mac 上的 Android Studio 1.1 版上,从“文件”菜单中设置“拼写”不起作用。

Set spelling from Android Studio > Preferences > Inspections.从 Android Studio > Preferences > Inspections 设置拼写。

Uncheck Typo and uncheck Spelling located in the first group of options "Project Settings".取消选中位于第一组选项“项目设置”中的错字和拼写。

在 MS 中,您可以使用Alt+Enter禁用检查。

I have just find out that the typo inspection feature is provided by the Grazie plugin, which comes pre-installed in IntelliJ.我刚刚发现错字检查功能是由 Grazie 插件提供的,它预装在 IntelliJ 中。 You can just disable displugin in the setting and all typo inspection feature will no longer be available.您可以在设置中禁用 displugin,所有错别字检查功能将不再可用。

Click here点击这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM