IDEA之google style配置

一、window下IDEA配置谷歌编码规范xml

1、首先下载文件:intellij-java-google-style.xml(文件详细内容见附件)

2、找到该路径(C:\Users\自己的登录名 \.IntelliJIdea14\config\codestyles), 如果你的目录下没有codestyles文件夹,请自己创建,然后将intellij-java-google-style.xml文件复制到该处。

3、打开你的IDEA,找到setting 设置

二、linux下IDEA配置谷歌编码规范xml

1、首先下载文件:intellij-java-google-style.xml(文件详细内容见附件),放置在任意目录下(我的/home/sunjf/intellij-java-google-style.xml)

2、打开你的IDEA,找到setting 设置,Code Style-->Manager-->Import

选中Intellij IDEA code style XML,点击OK

找到intellij-java-google-style.xml双击

 此时GoogleStyle被添加  

附件:

<code_scheme name="GoogleStyle">
<option name="JAVA_INDENT_OPTIONS">
<value>
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="4"/>
<option name="TAB_SIZE" value="8"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</value>
</option>
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99"/>
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99"/>
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="com.google" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="android" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="antenna" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="antlr" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ar" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="asposewobfuscated" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="asquare" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="atg" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="au" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="beaver" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="bibtex" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="bmsi" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="bsh" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ccl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="cern" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ChartDirector" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="checkers" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="com" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="COM" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="common" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="contribs" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="corejava" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="cryptix" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="cybervillains" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="dalvik" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="danbikel" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="de" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="EDU" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="eg" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="eu" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="examples" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="fat" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="fit" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="fitlibrary" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="fmpp" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="freemarker" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="gnu" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="groovy" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="groovyjarjarantlr" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="groovyjarjarasm" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="hak" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="hep" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ie" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="imageinfo" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="info" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="it" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jal" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="Jama" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="japa" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="japacheckers" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jas" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jasmin" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="javancss" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="javanet" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="javassist" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="javazoom" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="java_cup" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jcifs" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jetty" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="JFlex" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jj2000" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jline" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jp" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="JSci" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jsr166y" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="junit" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jxl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="jxxload_help" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="kawa" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="kea" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="libcore" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="libsvm" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="lti" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="memetic" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="mt" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="mx4j" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="net" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="netscape" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="nl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="nu" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="oauth" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ognl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="opennlp" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="oracle" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="org" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="penn2dg" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="pennconverter" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="pl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="prefuse" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="proguard" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="repackage" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="scm" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="se" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="serp" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="simple" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="soot" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="sqlj" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="src" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ssa" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="sun" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="sunlabs" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="tcl" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="testdata" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="testshell" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="testsuite" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="twitter4j" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="uk" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="ViolinStrings" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="weka" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="wet" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="winstone" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="woolfel" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="wowza" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="java" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="javax" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="" withSubpackages="true" static="false"/>
<emptyLine/>
<package name="" withSubpackages="true" static="true"/>
</value>
</option>
<option name="RIGHT_MARGIN" value="100"/>
<option name="JD_P_AT_EMPTY_LINES" value="false"/>
<option name="JD_KEEP_EMPTY_PARAMETER" value="false"/>
<option name="JD_KEEP_EMPTY_EXCEPTION" value="false"/>
<option name="JD_KEEP_EMPTY_RETURN" value="false"/>
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
<option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1"/>
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true"/>
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_ASSIGNMENT" value="true"/>
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_THROWS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true"/>
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true"/>
<option name="CALL_PARAMETERS_WRAP" value="1"/>
<option name="METHOD_PARAMETERS_WRAP" value="1"/>
<option name="EXTENDS_LIST_WRAP" value="1"/>
<option name="THROWS_LIST_WRAP" value="1"/>
<option name="EXTENDS_KEYWORD_WRAP" value="1"/>
<option name="THROWS_KEYWORD_WRAP" value="1"/>
<option name="METHOD_CALL_CHAIN_WRAP" value="1"/>
<option name="BINARY_OPERATION_WRAP" value="1"/>
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true"/>
<option name="TERNARY_OPERATION_WRAP" value="1"/>
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true"/>
<option name="FOR_STATEMENT_WRAP" value="1"/>
<option name="ARRAY_INITIALIZER_WRAP" value="1"/>
<option name="ASSIGNMENT_WRAP" value="5"/>
<option name="WRAP_COMMENTS" value="true"/>
<option name="IF_BRACE_FORCE" value="3"/>
<option name="DOWHILE_BRACE_FORCE" value="3"/>
<option name="WHILE_BRACE_FORCE" value="3"/>
<option name="FOR_BRACE_FORCE" value="3"/>
<ADDITIONAL_INDENT_OPTIONS fileType="css">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="haml">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="java">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="4"/>
<option name="TAB_SIZE" value="8"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="js">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="4"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="jsp">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="php">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="sass">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="xml">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<ADDITIONAL_INDENT_OPTIONS fileType="yml">
<option name="INDENT_SIZE" value="4"/>
<option name="CONTINUATION_INDENT_SIZE" value="8"/>
<option name="TAB_SIZE" value="4"/>
<option name="USE_TAB_CHARACTER" value="false"/>
<option name="SMART_TABS" value="false"/>
<option name="LABEL_INDENT_SIZE" value="0"/>
<option name="LABEL_INDENT_ABSOLUTE" value="false"/>
<option name="USE_RELATIVE_INDENTS" value="false"/>
</ADDITIONAL_INDENT_OPTIONS>
<codeStyleSettings language="ECMA Script Level 4">
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
<option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1"/>
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true"/>
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_ASSIGNMENT" value="true"/>
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_THROWS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true"/>
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true"/>
<option name="CALL_PARAMETERS_WRAP" value="1"/>
<option name="METHOD_PARAMETERS_WRAP" value="1"/>
<option name="EXTENDS_LIST_WRAP" value="1"/>
<option name="THROWS_LIST_WRAP" value="1"/>
<option name="EXTENDS_KEYWORD_WRAP" value="1"/>
<option name="THROWS_KEYWORD_WRAP" value="1"/>
<option name="METHOD_CALL_CHAIN_WRAP" value="1"/>
<option name="BINARY_OPERATION_WRAP" value="1"/>
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true"/>
<option name="TERNARY_OPERATION_WRAP" value="1"/>
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true"/>
<option name="FOR_STATEMENT_WRAP" value="1"/>
<option name="ARRAY_INITIALIZER_WRAP" value="1"/>
<option name="ASSIGNMENT_WRAP" value="5"/>
<option name="WRAP_COMMENTS" value="true"/>
<option name="IF_BRACE_FORCE" value="3"/>
<option name="DOWHILE_BRACE_FORCE" value="3"/>
<option name="WHILE_BRACE_FORCE" value="3"/>
<option name="FOR_BRACE_FORCE" value="3"/>
<option name="PARENT_SETTINGS_INSTALLED" value="true"/>
</codeStyleSettings>
<codeStyleSettings language="JavaScript">
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
<option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1"/>
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true"/>
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_ASSIGNMENT" value="true"/>
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_THROWS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true"/>
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true"/>
<option name="CALL_PARAMETERS_WRAP" value="1"/>
<option name="METHOD_PARAMETERS_WRAP" value="1"/>
<option name="EXTENDS_LIST_WRAP" value="1"/>
<option name="THROWS_LIST_WRAP" value="1"/>
<option name="EXTENDS_KEYWORD_WRAP" value="1"/>
<option name="THROWS_KEYWORD_WRAP" value="1"/>
<option name="METHOD_CALL_CHAIN_WRAP" value="1"/>
<option name="BINARY_OPERATION_WRAP" value="1"/>
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true"/>
<option name="TERNARY_OPERATION_WRAP" value="1"/>
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true"/>
<option name="FOR_STATEMENT_WRAP" value="1"/>
<option name="ARRAY_INITIALIZER_WRAP" value="1"/>
<option name="ASSIGNMENT_WRAP" value="5"/>
<option name="WRAP_COMMENTS" value="true"/>
<option name="IF_BRACE_FORCE" value="3"/>
<option name="DOWHILE_BRACE_FORCE" value="3"/>
<option name="WHILE_BRACE_FORCE" value="3"/>
<option name="FOR_BRACE_FORCE" value="3"/>
<option name="PARENT_SETTINGS_INSTALLED" value="true"/>
</codeStyleSettings>
<codeStyleSettings language="PHP">
<option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
<option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1"/>
<option name="ALIGN_MULTILINE_ASSIGNMENT" value="true"/>
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true"/>
<option name="ALIGN_MULTILINE_THROWS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true"/>
<option name="ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION" value="true"/>
<option name="CALL_PARAMETERS_WRAP" value="1"/>
<option name="METHOD_PARAMETERS_WRAP" value="1"/>
<option name="EXTENDS_LIST_WRAP" value="1"/>
<option name="THROWS_LIST_WRAP" value="1"/>
<option name="EXTENDS_KEYWORD_WRAP" value="1"/>
<option name="THROWS_KEYWORD_WRAP" value="1"/>
<option name="METHOD_CALL_CHAIN_WRAP" value="1"/>
<option name="BINARY_OPERATION_WRAP" value="1"/>
<option name="BINARY_OPERATION_SIGN_ON_NEXT_LINE" value="true"/>
<option name="TERNARY_OPERATION_WRAP" value="1"/>
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true"/>
<option name="FOR_STATEMENT_WRAP" value="1"/>
<option name="ARRAY_INITIALIZER_WRAP" value="1"/>
<option name="ASSIGNMENT_WRAP" value="5"/>
<option name="WRAP_COMMENTS" value="true"/>
<option name="IF_BRACE_FORCE" value="3"/>
<option name="DOWHILE_BRACE_FORCE" value="3"/>
<option name="WHILE_BRACE_FORCE" value="3"/>
<option name="FOR_BRACE_FORCE" value="3"/>
<option name="PARENT_SETTINGS_INSTALLED" value="true"/>
</codeStyleSettings>
</code_scheme>
时间: 2024-10-14 04:19:52

IDEA之google style配置的相关文章

[转]程序开发基础学习二(C++ Google Style 命名规则)

无规矩不成方圆,新的岗位就需要服从团队的编码规则.很开心团队用的是Google的C++编码规则,大概看了下Google 的编码规则,正如九天翔雁说的:“Google的 C++ Style Guide远不仅是一个传统意义上的代码书写风格指导,对于C++的方方面面做出了Google的解释和使用建议,包括每个规则给出时,较为详细的讲了这个规则好的一面和不好的一面,最最激进的规则甚至有禁用C++的异常,以及除了Google规范的Interface作为基类外,禁用多重继承,在绝大部分情况下禁用默认参数等内

Google Style Guides-Shell Style Guide

作者声明 这篇翻译文章对我来说是有点小挑战的.由于我英语实在非常烂,勉强能够看懂一些技术文档,能够猜出大概的含义.可是翻译对我来说算是一个挑战,看英文文档已经不是一天两天的事了,可是这个篇文章却是我的处女作,通读了这篇翻译后的文章,已经发现部分语句翻译的非常不好,可是我没有能力纠正好,加上时间上不同意,最后我还是厚着脸皮放到了博客上,假设有幸某位读者读到我这蹩脚的翻译.希望你能够在唾骂我的同一时候也给出正确的翻译让我能够修正.原文參见附录. 背景 使用什么shell? Bash是同意的可运行文件

Linux下安装Google SDK 配置Google API翻译环境

1.准备工作 1.1 查看系统Python版本 Linux 安装Google SDK时要求安装Python 2.7或以上版本 可以用 python -V 查看当前环境下的 Python 版本. 若Python版本低于2.7,需要重新安装Python,并设为默认Python 1.2 下载Google SDK cd到你想保存Google SDK的位置,执行 wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-c

04_pages.json中首页style配置(顶部搜索框及左右按钮配置)

1.  pages.json配置 代码: "path": "pages/index/index",            "style": {                "app-plus": {                    "scrollIndicator": "none", //隐藏滚动条                    "titleNView"

google hosts配置

注1:请使用chrome浏览器,并在地址栏里输入 chrome://flags/,然后查找QUIC,启用该协议,同时建议启用SPDY/4,能让访问更流畅. 注2:请使用https的方式访问,比如:https://www.google.com 注3:默认可能会跳转到www.google.com.hk,如果.hk访问困难,请使用:https://www.google.com/ncr 方式访问,禁止国别跳转. 64.233.166.105    www.google.com.hk64.233.166.

google host 配置

#google hosts 2015 by www.oicqzone.com #更新时间:2015年1月22日 14:16:05 #更新地址:http://www.oicqzone.com/pc/google-hosts.html #base services 64.233.169.103 google.com 64.233.169.103 www.google.com 64.233.169.103 m.google.com 64.233.169.103 scholar.google.com 6

GOOGLE STYLE命名法

项目代码越来越多,变量什么的,起的名字太难懂了.还是回头好好学学这个命名法吧. 转自:http://blog.csdn.net/hackmind/article/details/6607954 1.文件名:mmmm_nnnn 2.类命名[结构体.枚举.类型定义(typedef),同.] “类型名称的每个单词首字母均大写, 不包含下划线: MxxxNxxx” 3.变量命名 mmmm_nnnn:正常变量 mmmm_nnn_: 成员变量 g_mmmm_nnn:全局变量 4.常量命名:kPlayerNa

Google Java Style

1 Introduction  This document serves as the complete definition of Google's coding standards for source code in the Java? Programming Language. A Java source file is described as being in Google Style if and only if it adheres to the rules herein. Li

Google Java Style 中文版(转)

Google Java Style 中文版 转载请注明出处:http://www.blogjava.net/zh-weir/archive/2014/02/08/409608.html     Google Java Style 中文版 基于官方文档2013.12.19最后一次改动. 翻译人:Weir Zhang (zh.weir) 旁白:水平有限,很多地方只是意译.不准确的地方,大家以原版文档为准. 原版地址:http://google-styleguide.googlecode.com/sv