1.Idea设置代码分割线 file->settings->Editor->General->Appearance,再勾选Show method separators,即可。 代码分割线在你的java代码太长的时候可以起到辨别代码的功效