idea书写模板的配置

整体格式化格式

<code_scheme name="self_style" version="173">
    <JetCodeStyleSettings>
        <option name="PACKAGES_TO_USE_STAR_IMPORTS">
            <value>
                <package name="java.util" alias="false" withSubpackages="false"/>
                <package name="kotlinx.android.synthetic" alias="false" withSubpackages="true"/>
                <package name="io.ktor" alias="false" withSubpackages="true"/>
            </value>
        </option>
        <option name="PACKAGES_IMPORT_LAYOUT">
            <value>
                <package name="" alias="false" withSubpackages="true"/>
                <package name="java" alias="false" withSubpackages="true"/>
                <package name="javax" alias="false" withSubpackages="true"/>
                <package name="kotlin" alias="false" withSubpackages="true"/>
                <package name="" alias="true" withSubpackages="true"/>
            </value>
        </option>
    </JetCodeStyleSettings>
    <OracleCodeStyleSettings version="2">
        <option name="KEYWORD_CASE" value="0"/>
    </OracleCodeStyleSettings>
    <XML>
        <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true"/>
    </XML>
    <codeStyleSettings language="JAVA">
        <option name="KEEP_LINE_BREAKS" value="false"/>
        <option name="KEEP_FIRST_COLUMN_COMMENT" value="false"/>
        <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
        <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>
        <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
        <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
        <option name="BRACE_STYLE" value="2"/>
        <option name="CLASS_BRACE_STYLE" value="2"/>
        <option name="METHOD_BRACE_STYLE" value="2"/>
        <option name="ELSE_ON_NEW_LINE" value="true"/>
        <option name="WHILE_ON_NEW_LINE" value="true"/>
        <option name="CATCH_ON_NEW_LINE" value="true"/>
        <option name="FINALLY_ON_NEW_LINE" value="true"/>
        <option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
        <option name="ALIGN_MULTILINE_RESOURCES" value="false"/>
        <option name="SPACE_AROUND_UNARY_OPERATOR" value="true"/>
        <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true"/>
        <option name="SPACE_BEFORE_METHOD_CALL_PARENTHESES" value="true"/>
        <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true"/>
        <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true"/>
        <option name="CALL_PARAMETERS_WRAP" value="1"/>
        <option name="METHOD_PARAMETERS_WRAP" value="1"/>
        <option name="RESOURCE_LIST_WRAP" value="5"/>
        <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="5"/>
        <option name="ARRAY_INITIALIZER_WRAP" value="1"/>
        <option name="VARIABLE_ANNOTATION_WRAP" value="2"/>
        <option name="SPACE_BEFORE_ANOTATION_PARAMETER_LIST" value="true"/>
        <option name="ENUM_CONSTANTS_WRAP" value="2"/>
        <indentOptions>
            <option name="USE_TAB_CHARACTER" value="true"/>
        </indentOptions>
    </codeStyleSettings>
</code_scheme>

annotation.tp

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author cyc
 * @version ${DATE}
 * @see [自定义注解]
 * @since [${PROJECT_NAME}]
 */
public @interface ${NAME}
{
}

class.tp

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author cyc
 * @version ${DATE}
 * @see [相关类/方法]
 * @since [${PROJECT_NAME}]
 */
public class ${NAME}
{

}

enum.tp

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author cyc
 * @version ${DATE}
 * @see [相关类/方法]
 * @since [${PROJECT_NAME}]
 */
public enum ${NAME}
{
}

interface.tp

#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author zhouhaofeng
 * @version ${DATE}
 * @see [相关类/方法]
 * @since [${PROJECT_NAME}]
 */
public interface ${NAME}
{
}

你可能感兴趣的:(eclipse)