1. 程式人生 > >解決author波浪線Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

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

博客 翻譯 cli 修復 and idea tro alt 拼寫檢查

自從把默認的頭註釋的author改成自己的名字以後越看越順眼,但是發現名字下面一直有個波浪線,強迫癥簡直不能忍。

技術分享圖片

然後當你把鼠標放上去,再點擊提示上的“more”,會看到下面的提示:

Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click

翻譯過來就是:拼寫檢查器檢查可以幫助查找拼寫錯誤拼寫錯誤代碼、 註釋文本 修復它們一次點擊

其實就是idea有單詞自動檢查的功能,而你這個名字又不是一個單詞,所有給個波浪線提示你,我們要做的就是把它加到詞典裏邊去,讓idea知道我已經把它當成一個單詞了,不要在提示了。

技術分享圖片

鼠標選中單詞-->點擊鼠標右鍵-->spelling-->save ‘xxx‘ to distionary

技術分享圖片

波浪線終於幹掉了,強迫癥可以安心地繼續敲代碼了。

技術分享圖片

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

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