1、https://github.com/google/styleguide 下载google code style风格配置xml
2、自己操作系统所属目录\.IntelliJIdea15\config\codestyles\ 没有codestyles文件目录的自己创建一个把 intellij-java-google-style.xml 考进去
3、启动idea,全局setting中editor-code style-scheme选择googleStyle
ps:自己用什么语言到时候用对应的ide和语言就行了
原文:http://www.cnblogs.com/jokerpu/p/6946658.html