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