How to generate an Eclipse formatter configuration from a checkstyle configuration?

纵饮孤独 提交于 2019-11-27 19:38:20
Paul

In Eclipse (3.6):

  • Install Checkstyle plug-in
  • Import stylesheet using Windows --> Preferences, General --> Checkstyle --> New. Since you have an external file, choose "external file" as the type.

Right-click on your project in the Package view and select Checkstyle --> Create Formatter-Profile.

Then enable the formatter for your workspace: Windows --> Preferences --> Java --> Code Style --> Formatter. Select formatter: "eclipse-cs [project name]".

Click OK!

Here they say, that you can import a checkstyle configuration directly into the eclipse formatter. Didn't verify, but at least, it's a hint.

If the link doesn't work in your browser, please copy'n'paste this url: http://dbestudio.wiki.sourceforge.net/Code+Formatting+with+Checkstyle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!