idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments an

把默认的头注释的author改成自己的名字之后大概率会报波浪线;

然后当你把鼠标放上去,再点击提示上的“more”,会看到下面的提示:
Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments an

翻译过来就是:拼写检查器检查可以帮助查找拼写错误和拼写错误在您的代码、 注释和文本、 并修复它们中一次点击;

其实就是idea有单词自动检查的功能,而你这个名字又不是一个单词,所有给个波浪线提示你,我们要做的就是把它加到词典里边去,让idea知道我已经把它当成一个单词了,不要在提示了;

鼠标选中单词–>点击鼠标右键–>spelling–>save ‘xxx’ to distionary

idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments an

这个时候波浪线终于干掉了,可以安心敲代码了;

idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments an
但是,还有一个问题;
在某些版本的idea这样添的Accepted Words重启idea后就失效了,我关掉idea重新打开之后我的大名之下仍然会有波浪线(目前idea版本2018.2.4),这就很让人头痛了;

目前手动把不需要idea检查拼写的单词添加到Accepted Words可以解决重启idea之后Accepted Words失效的问题(idea版本2018.2.4);

ctrl+alt+s打开setting–>Editor–>Spelling–>Accepted Words->右上角加号添加单词

idea 解决author波浪线Spellchecker inspection helps locate typos and misspelling in your code, comments an
这回算是彻底干掉波浪线,可以安心摸鱼…啊不可以安心敲代码了;

参考博客地址:http://blog.csdn.net/miyuehu/article/details/44154963

相关文章:

  • 2021-08-02
  • 2021-05-06
  • 2021-12-06
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-21
猜你喜欢
  • 2021-10-19
  • 2022-02-09
  • 2022-12-23
  • 2021-06-30
  • 2021-05-16
  • 2021-12-20
相关资源
相似解决方案