Linux:Settings —> Editor —> Inspections —> General —> Duplicated Codehtml
Mac:Preferences --> Editor —> Inspections —> General —> Duplicated Code fragmenthtm
將對應的勾去掉。blog
參考:get
http://www.javashuo.com/article/p-skmanfsn-bx.htmlit