1、是个啥?

  CheckStyle是一个检测代码格式是否满足规范的工具,其中用得比较多的是Google规范和Sun规范

2、下载安装插件

  File -> Settings -> Plugins -> Marketplace 搜索安装“CheckStyle” 点击下载checkstyle插件。安装完重启IDEA

IDEA插件之CheckStyle

 

 3、checkStyle的使用

在代码编辑框右键,选择“Check Current File”可以检查当前文件:

 IDEA插件之CheckStyle

之后底栏会出现窗口,显示结果:

 IDEA插件之CheckStyle

 

 可以选择sun 格式还是google格式:

IDEA插件之CheckStyle

 

相关文章:

  • 2022-01-23
  • 2021-04-11
  • 2021-12-07
  • 2022-12-23
  • 2021-12-06
  • 2021-07-19
猜你喜欢
  • 2022-12-23
  • 2021-08-22
  • 2022-01-11
  • 2022-01-09
  • 2021-05-28
  • 2021-12-30
  • 2021-08-24
相关资源
相似解决方案