在settings里面找到plugins这个选项,搜索Eclipse Code Formatter,点击安装,重启idea即可进行配置;
首先,先安装Eclipse Code Formatter插件;
重启idea后,进行设置;