5

IntelliJ IDEA 中的代码拼写检查器

 2 years ago
source link: https://blog.jetbrains.com/zh-hans/writerside/2022/03/spell-checker-for-code-in-intellij-idea/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Tools

IntelliJ IDEA 中的代码拼写检查器

Svetlana Novikova
Svetlana Novikova 2022年3月10日

Read this post in other languages:
English, 한국어

某天您编写了一些代码,提交,推送,然后在拉取请求上收到了评论:“看起来不错。 哦,但是你把类名称中的这个单词拼错了”。 现在,您必须仅仅因为拼写错误而更改拉取请求。 既烦人又耗时,不是吗?

IntelliJ IDEA 如何对代码进行拼写检查

IntelliJ IDEA 明白,诸如类和方法等代码结构不应像常规单词一样进行拼写检查。

同时,它可以拆分复杂的骆驼拼写法名称并对每段的拼写进行检查。 如果您拼错了类名称中的特定单词,IntelliJ IDEA 会以下划线标注该错误。

这就是内置拼写检查器所提供的功能。

高级拼写、语法和样式辅助

安装 Grazie Professional 插件以获得更高级的检查和建议。 例如,代码中的冗余复数,例如 entitiesIds,而非 entityIds 等。

本博文英文原作者:

Svetlana Novikova

Svetlana Novikova

  • Share

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK