在IntelliJ中导入Eclipse Code Formatter

以下设置建议在intelliJ的默认配置下设置,以节省逐个项目配置的时间

1、安装IntelliJ插件Eclipse Code Formatter

2、安装插件并重启后,在Settings->Other Settings中找到Eclipse Code Formatter,启用设定formatter文件。formatter文件模板课参考页面Eclipse Java代码风格

3、安装完了之后按Ctrl+Alt+L对代码进行format。也可以选中自己的代码,进行部分格式化。

发布了48 篇原创文章 · 获赞 4 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/as4589sd/article/details/104121058