1. 下载CheckStyle Plug

操作:eclipse>>Help>>Eclipse Marketplace,输入checkstyle,点击Install
eclipse使用checkstyle

2. 配置CheckStyle

操作:eclipse>>Window>>Preferences,找到CheckStyle,点击New,添加Style文件
eclipse使用checkstyle
eclipse使用checkstyle
假若导入网上的文件,type就选 Internal Configuration,把地址贴上去就可以了

3. 设置为默认检查

操作:eclipse>>Window>>Preferences>>CheckStyle
eclipse使用checkstyle

4. 应用

操作: 项目>>右键>>Properties>>Checkstyle
eclipse使用checkstyle

5. 检查

操作:双击就可以直接跳转到对应位置
eclipse使用checkstyle
调出Markers窗口:
eclipse使用checkstyle

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2022-01-03
  • 2021-10-26
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-02-23
  • 2021-08-02
  • 2022-01-14
  • 2021-10-22
  • 2021-09-15
  • 2022-02-08
相关资源
相似解决方案