当前位置: 首页 > news >正文

如何做网站地图广东传染病最新消息

如何做网站地图,广东传染病最新消息,专业的网店交易平台,创意交易平台网文章目录 引入基础知识代码模板idea模板eclipse模板1.安装插件2.生成配置文件3.导入配置文件 附录一#xff1a;xml配置项说明附录二#xff1a;赠送 引入 最近在公司开发中#xff0c;遇到了一点小问题#xff0c;组内各同事的格式化规范不一致。一来导致代码样式并不统一… 文章目录 引入基础知识代码模板idea模板eclipse模板1.安装插件2.生成配置文件3.导入配置文件 附录一xml配置项说明附录二赠送 引入 最近在公司开发中遇到了一点小问题组内各同事的格式化规范不一致。一来导致代码样式并不统一二来有时候合并代码会出现冲突因此做一套统一代码格式化规范很有必要。 基础知识 在idea中可以通过快捷键CtrlAltL来格式化代码如果没有做任何配置idea本身也有一套默认的格式化标准。 除此以外使用快捷键 CtrlShiftAltL可以打开一个简易的格式化配置界面如下。 其他选项的说明可以去官网查询不同版本的idea有细微区别。Reformat File dialog 代码模板 如果所有开发者都使用Only VCS changed text似乎就不存在互相影响但仍然有两个问题。 整个工程的格式依然不统一不同开发者修改同一函数时仍可能出发互相影响。 因此我们还是需要找写一个统一的格式化模板来处理。 idea模板 进入菜单settings - Editor - Code Style - Java便可以对格式化代码的配置进行修改idea还贴心的做了预览功能可以很直观的看到变更。 同时也支持导入导出配置。我配置好后便可以分享给同事进行处理。 但单独基于这里去配置其实比较复杂需要逐项比对建议还是导入导出来处理。不过网络上的大多数配置文件仍是基于eclipse配置方式的xml。 eclipse模板 这里可以引入eclipse的xml模板。但实测此处引入似乎并没有生效。因此目前主流的方式还是需要安装插件。 1.安装插件 去市场搜索并安装Adapter For Eclipse Code Formatter的插件。 2.生成配置文件 当然是去找现成的配置文件啦。参考idea java EclipseFormatter代码格式化模板可以搞到阿里和唯品会的模板。 阿里格式化模板文件下载地址唯品会通用代码格式化模板 若我们对模板都不是很满意也是可以自己调整配置的。我们简单看下配置文件的形式。 !--略-- setting idorg.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters valuedo not insert/ setting idorg.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments valuedo not insert/ setting idorg.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression valuedo not insert/ !--略--对于这样的配置项我们需要一个配置说明才能读懂见附录一。 3.导入配置文件 重启idea后进入菜单。 如此我们再使用快捷键CtrlAltL就可以使用上我们的自定义配置啦。 附录一xml配置项说明 eclipse使用1.2代码自动格式化配置这个资料很难找目测不全但暂时找不到更完整的了。 insert_space_after_comma_in_annotationinsert/do_not_insert在注释中的逗号后面插入空格,默认为insert insert_space_before_comma_in_type_parametersinsert/do_not_insert用于在类型参数中在逗号前插入空格默认为do_not_insert insert_space_before_opening_brace_in_type_declarationinsert/do_not_insert用于在类型声明中打开括号之前插入空格默认为insert insert_space_after_comma_in_type_argumentsinsert/do_not_insert用于在类型参数的逗号后面插入空格默认为insert brace_position_for_anonymous_type_declarationEND_OF_LINE, NEXT_LINE, next_line_shift, NEXT_LINE_ON_WRAP用于定位匿名类型声明的大括号默认值:END_OF_LINE insert_space_before_colon_in_caseinsert/do_not_insert在冒号之前插入一个空格在case语句中默认为insert insert_space_after_opening_brace_in_array_initializerinsert/do_not_insert用于在数组初始化器的开始括号之后插入空格默认为do_not_insertinsert_new_line_in_empty_annotation_declarationinsert/do_not_insert在空注释声明默认为insertinsert_new_line_before_closing_brace_in_array_initializerinsert/do_not_insert在数组初始化器的关闭括号之前插入新行默认值:DO_NOT_INSERT insert_space_after_opening_paren_in_annotationinsert/do_not_insert在注释中打开括号后插入空格默认值:DO_NOT_INSERT blank_lines_before_field其中n为零或正整数用于在字段声明之前添加空行默认为:0insert_space_after_opening_paren_in_whileinsert/do_not_insert在一个while语句后面插入一个空格默认值:DO_NOT_INSERTinsert_space_between_empty_parens_in_annotation_type_member_declarationinsert/do_not_insert用于在注释类型成员声明中的空括号之间插入空格默认值:DO_NOT_INSERT insert_new_line_before_else_in_if_statementinsert/do_not_insert用于在if语句中的else关键字之前插入新行默认值:DO_NOT_INSERT insert_space_after_prefix_operatorinsert/do_not_insert在前缀运算符之后插入空格的格式化默认值:DO_NOT_INSERT keep_else_statement_on_same_lineTRUE, FALSE以在同一行上保留else语句,默认为false; insert_space_after_ellipsisinsert/do_not_insert在省略之后插入一个空格,默认为insert comment.insert_new_line_for_parameterinsert/do_not_insert在Javadoc根标记参数之后插入新行,默认为insert insert_space_before_opening_brace_in_annotation_type_declarationinsert/do_not_insert在注释类型声明的开始括号之前插入空格,默认为insert indent_breaks_compare_to_casesTRUE, FALSE与cases相比可以选择缩进中断,默认为true; insert_space_after_at_in_annotationinsert/do_not_insert在注释后面插入空格,默认为insert alignment_for_multiple_fields用于对多个字段进行对齐可能的值:由createAlignmentValue(boolean, int, int)调用返回的值——默认值:createAlignmentValue(false, WRAP_COMPACT, INDENT_DEFAULT) alignment_for_expressions_in_array_initializer用于数组初始化器中表达式对齐的格式化可能的值:由createAlignmentValue(boolean, int, int)调用返回的值默认:createAlignmentValue(false, WRAP_COMPACT, INDENT_DEFAULT) alignment_for_conditional_expression条件表达式对齐的格式化insert_space_before_opening_paren_in_forinsert/do_not_insert用于在for语句的圆括号前插入一个空格,默认为insert insert_space_after_binary_operatorinsert/do_not_insert在二进制操作符之后插入空格,默认为insert insert_space_before_question_in_wildcardinsert/do_not_insert在通配符中问号前插入空格默认值:DO_NOT_INSERT brace_position_for_array_initializerEND_OF_LINE, NEXT_LINE, next_line_shift, NEXT_LINE_ON_WRAP用于定位数组初始化程序的大括号默认值:END_OF_LINE insert_space_between_empty_parens_in_enum_constantinsert/do_not_insert用于在enum常量的空括号之间插入空格默认值:DO_NOT_INSERT insert_new_line_before_finally_in_try_statementinsert/do_not_insert用于在try语句中的finally关键字之前插入新行默认值:DO_NOT_INSERTinsert_new_line_after_annotation_on_local_variableinsert/do_not_insert在本地变量注释后插入新行默认:INSERT insert_new_line_before_catch_in_try_statementinsert/do_not_insert在try语句在catch关键字之前插入新行默认值:DO_NOT_INSERT insert_space_before_opening_paren_in_whileinsert/do_not_insert用于在while语句中打开括号之前插入空格,默认为insert blank_lines_after_package其中n为0或为正整数用于在包声明之后添加空行默认值:“0” insert_space_after_comma_in_type_parametersinsert/do_not_insert在类型参数中在逗号之后插入空格,默认为insert continuation_indentation其中n为零或正整数设置延续缩进,默认值:“2”; insert_space_after_postfix_operatorinsert/do_not_insert在后缀操作符之后插入空格的,默认值:DO_NOT_INSERT; alignment_for_arguments_in_method_invocation用于方法调用中参数对齐的; insert_space_before_closing_angle_bracket_in_type_argumentsinsert/do_not_insert在类型参数的关闭角括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_comma_in_superinterfacesinsert/do_not_insert在类型头中的超接口名称中插入逗号前的空格,默认值:DO_NOT_INSERT; blank_lines_before_new_chunk其中n为零或正整数用于在新块之前添加空行,默认值:“0; blank_lines_before_package其中n为零或正整数在包声明之前添加空行,默认值:“0; insert_space_after_comma_in_enum_constant_argumentsinsert/do_not_insert用于在enum常量,在逗号之后插入空格,默认为insert insert_space_after_opening_paren_in_constructor_declarationinsert/do_not_insert构造函数声明中插入空格,默认:DO_NOT_INSERT; insert_space_after_closing_angle_bracket_in_type_argumentsinsert/do_not_insert在类型参数的结束角括号之后插入空格,默认为insert comment.format_line_commentsTRUE, FALSE控制单行注释是否格式化,默认为TRUE; insert_space_after_comma_in_enum_declarationsinsert/do_not_insert在enum声明中在逗号后插入空格,默认值:INSERT; insert_space_before_opening_brace_in_blockinsert/do_not_insert用于在块中打开括号之前插入空格,默认值:INSERT; alignment_for_arguments_in_explicit_constructor_call用于显式构造函数调用中的参数对齐; insert_space_before_comma_in_method_invocation_argumentsinsert/do_not_insert在方法调用的参数中在逗号之前插入空格,默认:DO_NOT_INSERT; blank_lines_before_member_type其中n为零或正整数用于在成员类型声明之前添加空行,默认值:“0; align_type_members_on_columnsTRUE, FALSE在列上对齐类型声明的类型成员,默认为false; insert_space_after_opening_paren_in_enum_constantinsert/do_not_insert在enum常量中打开括号之后插入空格默认值:DO_NOT_INSERT insert_space_after_opening_paren_in_forinsert/do_not_insert在for语句中插入空格后插入空格默认值:DO_NOT_INSERT insert_space_before_opening_brace_in_method_declarationinsert/do_not_insert用于在方法声明中的打开括号之前插入空格,默认值:INSERT; alignment_for_selector_in_method_invocation方法调用中选择器对齐 insert_space_after_opening_paren_in_switchinsert/do_not_insert用于在switch语句中打开括号后插入空格默认值:DO_NOT_INSERT insert_space_after_unary_operatorinsert/do_not_insert在一个一元操作符后面插入空格默认值:DO_NOT_INSERT insert_space_after_colon_in_caseinsert/do_not_insert用于在case语句中,当冒号后插入空格,默认值:INSERT; indent_parameter_descriptionTRUE, FALSE用于控制Javadoc参数的描述是否缩进默认为TRUE insert_space_before_closing_paren_in_method_declarationinsert/do_not_insert在方法声明中的结束括号之前插入空格默认值:DO_NOT_INSERT insert_space_before_closing_paren_in_switchinsert/do_not_insert在switch语句中关闭括号之前插入空格默认值:DO_NOT_INSERT insert_space_before_opening_brace_in_enum_declarationinsert/do_not_insert在enum声明的开始括号之前插入空格默认值:INSERT; insert_space_before_opening_angle_bracket_in_type_parametersinsert/do_not_insert在类型参数前插入空格默认值:DO_NOT_INSERT insert_new_line_in_empty_type_declarationinsert/do_not_insert在空类型声明中插入新行默认值:INSERT; comment.clear_blank_lines_in_block_commentTRUE, FALSE用于控制块注释中的空行是否被清除默认为FLASE; insert_space_before_opening_paren_in_ifinsert/do_not_insert用于在if语句中打开括号之前插入空格,默认值:INSERT; insert_space_between_brackets_in_array_type_referenceinsert/do_not_insert用于在数组类型引用的括号中插入空格默认值:DO_NOT_INSERT insert_space_after_opening_paren_in_parenthesized_expressioninsert/do_not_insert用于在圆括号中展开括号之后插入空格默认值:DO_NOT_INSERT insert_space_before_comma_in_explicitconstructorcall_argumentsinsert/do_not_insert在显式构造函数调用的参数中插入逗号前的空格默认值:DO_NOT_INSERT insert_space_before_opening_brace_in_constructor_declarationinsert/do_not_insert在构造函数声明的开始括号之前插入空格,默认值:INSERT; blank_lines_before_first_class_body_declarationn为0或正整数在第一个类body声明之前添加空行,-默认值:“0”; indentation.size其中n为0或正整数指定表示一个缩进的等效空格数,只有当选项卡char设置为混合时才使用此选项,默认值:“4”; insert_space_between_empty_parens_in_method_declarationinsert/do_not_insert用于在方法声明中的空括号之间插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_paren_in_enum_constantinsert/do_not_insert在enum常量中打开括号之前插入空格,默认值:DO_NOT_INSERT; alignment_for_superclass_in_type_declaration用于在类型声明中对超类进行对齐; alignment_for_assignment分配对齐; tabulation.charTAB空格混合指定表格大小,默认为TAB insert_space_after_comma_in_constructor_declaration_parametersinsert/do_not_insert用于在构造函数声明的参数中插入逗号后的空格,默认值:INSERT; insert_space_before_prefix_operatorinsert/do_not_insert用于在前缀操作符之前插入空格,默认值:DO_NOT_INSERT; indent_statements_compare_to_bodyTRUE, FALSE在方法或构造函数的主体内缩进语句的默认为TRUE blank_lines_before_method其中n为零或正整数用于在方法声明之前添加空行默认值:“0” format_guardian_clause_on_one_lineTRUE, FALSE在一个行中保留保护条款默认为FLASE insert_space_before_colon_in_forinsert/do_not_insert用于在for语句的冒号之前插入空格,默认值:INSERT; insert_space_before_closing_paren_in_castinsert/do_not_insert在转换表达式中关闭括号之前插入空格,默认值:DO_NOT_INSERT; alignment_for_parameters_in_constructor_declaration构造函数声明中参数对齐; insert_space_after_colon_in_labeled_statementinsert/do_not_insert在冒号后插入一个标记语句中的空格,默认值:INSERT; brace_position_for_annotation_type_declarationEND_OF_LINE, NEXT_LINE, next_line_moved, NEXT_LINE_ON_WRAP用于定位注释类型声明的大括号,默认值:END_OF_LINE; insert_space_before_closing_paren_in_method_invocationinsert/do_not_insert在方法调用的结束括号之前插入一个空格,默认值:DO_NOT_INSERT; insert_new_line_in_empty_method_bodyinsert/do_not_insert在空方法体中插入新行,默认值:INSERT; insert_space_after_opening_bracket_in_array_allocation_expressioninsert/do_not_insert在数组分配表达式的左括号后面插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_brace_in_enum_constantinsert/do_not_insert在enum中在开环前插入一个空格,默认值:INSERT; insert_space_before_comma_in_annotationinsert/do_not_insert用于在注释中逗号前插入空格,默认值:DO_NOT_INSERT; insert_space_after_at_in_annotation_type_declarationinsert/do_not_insert用于在注释类型声明之后插入空格,默认值:DO_NOT_INSERT; insert_space_before_comma_in_method_declaration_throwsinsert/do_not_insert:在方法声明的throw子句的异常名称中在逗号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_closing_paren_in_ifinsert/do_not_insert在if语句的结束括号之前插入空格,默认值:DO_NOT_INSERT; brace_position_for_switchEND_OF_LINE, NEXT_LINE, next_line_shift, NEXT_LINE_ON_WRAP定位switch语句的大括号,默认为END_OF_LINE insert_space_after_comma_in_method_declaration_throwsinsert/do_not_insert在方法声明的抛出子句的异常名称中在逗号之后插入空格,默认值:INSERT; insert_space_before_parenthesized_expression_in_returninsert/do_not_insert在返回语句中的括号表达式之前插入空格,默认值:INSERT; insert_space_before_opening_paren_in_annotationinsert/do_not_insert用于在注释中打开括号之前插入空格,默认值:INSERT; insert_space_after_question_in_conditionalinsert/do_not_insert在条件表达式的问号后面插入空格,默认值:DO_NOT_INSERT; insert_space_after_question_in_wildcardinsert/do_not_insert在通配符中问号后面插入空格默认值:DO_NOT_INSERT insert_space_before_closing_bracket_in_array_allocation_expressioninsert/do_not_insert在数组分配表达式中插入一个空格默认值:DO_NOT_INSERT insert_space_before_parenthesized_expression_in_throwinsert/do_not_insert在抛出语句中插入括号表达式之前的空格,默认值:INSERT; insert_space_before_comma_in_type_argumentsinsert/do_not_insert用于在类型参数中在逗号之前插入空格默认值:DO_NOT_INSERT indent_switchstatements_compare_to_switchTRUE, FALSE以缩进switch语句比较切换默认为TRUE insert_space_before_ellipsisinsert/do_not_insert在省略号之前插入空格默认值:DO_NOT_INSERT brace_position_for_blockEND_OF_LINE, NEXT_LINE, NEXT_LINE_SHIFTED, NEXT_LINE_ON_WRAP定位块的括号默认为END_OF_LINE insert_space_before_comma_in_for_initsinsert/do_not_insert用于在for语句的初始化中在逗号之前插入空格默认值:DO_NOT_INSERT brace_position_for_method_declaration END_OF_LINE, NEXT_LINE, NEXT_LINE_SHIFTED, NEXT_LINE_ON_WRAP用于定位方法声明的大括号默认为END_OF_LINE compact_else_ifTRUE, FALSE压缩else/if默认为TRUE insert_space_before_comma_in_array_initializerinsert/do_not_insert在逗号之前插入空格默认值:DO_NOT_INSERT insert_space_after_comma_in_for_incrementsinsert/do_not_insert在for语句的增量中在逗号后面插入空格默认值:INSERT insert_space_before_closing_bracket_in_array_referenceinsert/do_not_insert用于在数组引用的结束括号前插入空格默认值:DO_NOT_INSERT brace_position_for_enum_constantEND_OF_LINE, NEXT_LINE, next_line_shift, NEXT_LINE_ON_WRAP用于定位枚举常量的括号默认为END_OF_LINE comment.indent_root_tagsTRUE, FALSE控制Javadoc根标签是否缩进默认为TRUE; insert_space_before_comma_in_enum_declarationsinsert/do_not_insert在枚举声明中插入逗号前的空格默认值:DO_NOT_INSERT insert_space_after_comma_in_explicitconstructorcall_argumentsinsert/do_not_insert用于在显式构造函数调用的参数中在逗号之后插入空格默认值:INSERT; insert_space_before_opening_brace_in_switchinsert/do_not_insert用于在开关语句的开始括号前插入空格默认值:INSERT; insert_space_after_comma_in_superinterfacesinsert/do_not_insert在类型头的超接口名称中在逗号之后插入空格默认值:INSERT; insert_space_before_comma_in_method_declaration_parametersinsert/do_not_insert在方法声明的参数中在逗号之前插入空格默认值:DO_NOT_INSERT insert_space_before_comma_in_allocation_expressioninsert/do_not_insert在分配表达式中插入一个空格默认值:DO_NOT_INSERT tabulation.size其中n为0或为正整数指定表示一个表格的等效空格数,默认值:“4; insert_space_before_opening_bracket_in_array_type_referenceinsert/do_not_insert用于在数组类型引用的左括号前插入空格,默认值:DO_NOT_INSERT; insert_new_line_after_opening_brace_in_array_initializerinsert/do_not_insert用于在数组初始化器的开始括号之后插入新行,默认值:DO_NOT_INSERT; insert_space_after_closing_brace_in_blockinsert/do_not_insert在块的闭括号之后插入空格默认值:INSERT; insert_space_before_opening_bracket_in_array_referenceinsert/do_not_insert在数组引用的左括号之前插入空格,默认值:DO_NOT_INSERT; insert_new_line_in_empty_enum_constantinsert/do_not_insert在空enum常量中插入新行默认值:INSERT; insert_space_after_opening_angle_bracket_in_type_argumentsinsert/do_not_insert用于在类型参数的开始角括号之后插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_paren_in_constructor_declarationinsert/do_not_insert用于在构造函数声明中打开括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_after_opening_paren_in_ifinsert/do_not_insert在if语句中打开括号后插入空格,默认值:DO_NOT_INSERT; insert_space_before_comma_in_constructor_declaration_throwsinsert/do_not_insert在构造函数声明的throw子句的异常名称中在逗号之前插入空格,默认值:DO_NOT_INSERT; comment.clear_blank_lines_in_javadoc_commentTRUE, FALSE用于控制在javadoc注释中是否清除空行,默认为FALSE; alignment_for_throws_clause_in_constructor_declaration用于在构造函数声明中对齐抛出子句; insert_space_after_assignment_operatorinsert/do_not_insert在赋值操作符之后插入空格默认值:INSERT; insert_space_before_assignment_operatorinsert/do_not_insert在赋值运算符之前插入空格默认值:INSERT; indent_empty_linesTRUE, FALSE缩进空行,默认为false; insert_space_after_opening_paren_in_synchronizedinsert/do_not_insert在同步语句中打开括号后插入空格,默认值:DO_NOT_INSERT; insert_space_after_closing_paren_in_castinsert/do_not_insert在转换表达式的结束括号之后插入空格默认值:INSERT; insert_space_after_comma_in_method_declaration_parametersinsert/do_not_insert在方法声明的参数中插入逗号之后的空格默认值:INSERT; brace_position_for_block_in_caseEND_OF_LINE、NEXT_LINE、next_line_shift、NEXT_LINE_ON_WRAP当块是后面的第一个语句时将块的大括号放在case语句中,默认值:END_OF_LINE; number_of_empty_lines_to_preserve其中n为0或正整数指定要保存的空行数,默认值:“0”; insert_space_before_opening_paren_in_method_declarationinsert/do_not_insert在方法声明中打开括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_after_opening_paren_in_catchinsert/do_not_insert在catch中开括号后插入空格,默认值:DO_NOT_INSERT; insert_space_before_closing_paren_in_constructor_declarationinsert/do_not_insert用于在构造函数声明中关闭括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_paren_in_method_invocationinsert/do_not_insert在方法调用中打开括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_after_opening_bracket_in_array_referenceinsert/do_not_insert在数组引用的左括号后面插入空格,默认值:DO_NOT_INSERT; insert_space_after_and_in_type_parameterinsert/do_not_insert用于在wilcard后和中插入空格默认值:INSERT; alignment_for_arguments_in_qualified_allocation_expression用于在限定分配表达式中对齐参数; continuation_indentation_for_array_initializer其中n为0或为正整数用于设置数组初始化器中的延续缩进,默认值:“2”; insert_space_between_empty_brackets_in_array_allocation_expressioninsert/do_not_insert在数组分配表达式的空括号之间插入空格,默认值:DO_NOT_INSERT; insert_space_before_at_in_annotation_type_declarationinsert/do_not_insert在注释类型声明之前插入空格默认值:INSERT; alignment_for_arguments_in_allocation_expression用于在分配表达式中对齐参数; insert_space_after_opening_paren_in_castinsert/do_not_insert在转换表达式中打开括号后插入空格,默认值:DO_NOT_INSERT; insert_space_before_unary_operatorinsert/do_not_insert在一元运算符之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_closing_angle_bracket_in_parameterized_type_referenceinsert/do_not_insert在参数化类型引用的结束角括号前插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_brace_in_anonymous_type_declarationinsert/do_not_insert用于在匿名类型声明中打开括号前插入空格默认值:INSERT; keep_empty_array_initializer_on_one_lineTRUE, FALSE要保持空数组初始化器一行,默认值:FALSE; insert_new_line_in_empty_enum_declarationinsert/do_not_insert在空枚举声明中插入新行默认值:INSERT; keep_imple_if_on_one_lineTRUE, FALSE用于在一行中保持简单的if语句,默认为FLASE; insert_space_before_comma_in_constructor_declaration_parametersinsert/do_not_insert用于在构造函数声明的参数中插入逗号前的空格,默认值:DO_NOT_INSERT; insert_space_after_closing_angle_bracket_in_type_parametersinsert/do_not_insert在类型参数的结束角括号之后插入空格,默认值:INSERT; insert_new_line_at_end_of_file_if_missinginsert/do_not_insert如果缺少的话可以在当前文件的末尾插入新行,默认值:DO_NOT_INSERT; insert_space_after_colon_in_forinsert/do_not_insert在for语句中在冒号后插入空格默认值:INSERT; insert_space_before_colon_in_labeled_statementinsert/do_not_insert在冒号之前插入一个标记语句的空格默认值:INSERT; insert_space_before_comma_in_parameterized_type_referenceinsert/do_not_insert在参数化类型引用中在逗号之前插入空格,默认值:DO_NOT_INSERT; alignment_for_superinterfaces_in_type_declaration用于在类型声明中对超接口进行对齐; alignment_for_binary_expression用于二进制表达式的对齐brace_position_for_enum_declaration{END_OF_LINE, NEXT_LINE, next_line_shift, NEXT_LINE_ON_WRAP} 用于定位enum声明的大括号.默认值:END_OF_LINE; insert_space_before_closing_paren_in_whileinsert/do_not_insert用于在while语句中结束括号之前插入空格,默认值:DO_NOT_INSERT; put_empty_statement_on_new_line{TRUE, FALSE用于指定空语句是否应该位于一个新的行,默认:FALSE; insert_new_line_after_annotation_on_parameterinsert/do_not_insert在参数的注释之后插入新行,默认值:DO_NOT_INSERT; insert_space_after_opening_angle_bracket_in_type_parametersinsert/do_not_insert 在类型参数中在开始角括号之后插入空格,默认值:DO_NOT_INSERT; insert_space_between_empty_parens_in_method_invocationinsert/do_not_insert在方法调用的空括号之间插入空格,默认值:DO_NOT_INSERT; insert_new_line_before_while_in_do_statementinsert/do_not_insert在do语句之前插入新行,默认值:DO_NOT_INSERT; alignment_for_arguments_in_enum_constant为了在enum常量中对齐参数。 comment.format_javadoc_commentsTRUE, FALSE用于控制javadoc注释是否被格式化默认为TRUE comment.line_length其中n为0或为正整数指定注释的行长度默认值:“80” blank_lines_between_import_groups其中n为0或为正整数添加导入组之间的空行默认值:“1” insert_space_before_comma_in_enum_constant_argumentsinsert/do_not_insert在enum常量的参数中在逗号前插入空格,默认值:DO_NOT_INSERT; insert_space_before_semicoloninsert/do_not_insert在分号前插入空格,默认值:DO_NOT_INSERT; brace_position_for_constructor_declaration { END_OF_LINE, NEXT_LINE, NEXT_LINE_SHIFTED, NEXT_LINE_ON_WRAP }用于定位构造函数声明的大括号默认值:END_OF_LINE number_of_blank_lines_at_beginning_of_method_body其中n为0或正整数在方法主体的开头添加空行默认值:“0” insert_space_before_colon_in_conditionalinsert/do_not_insert用于在条件表达式的冒号前插入空格,默认值:INSERT; indent_body_declarations_compare_to_type_headerTRUE, FALSE将缩进体声明与它的封闭类型heade进行比较默认为TRUE; insert_space_before_opening_paren_in_annotation_type_member_declarationinsert/do_not_insert在注释类型成员声明中打开括号之前插入空格,默认值:DO_NOT_INSERT; wrap_before_binary_operatorTRUE, FALSE在二进制运算符之前包装默认为TRUE; indent_body_declarations_compare_to_enum_declaration_headerTRUE, FALSE与所附的enum声明头相比缩进正文声明默认为TRUE; blank_lines_between_type_declarations其中n为0或为正整数在类型声明之间添加空白行,默认值:“0”; insert_space_before_closing_paren_in_synchronizedinsert/do_not_insert在同步语句的结束括号之前插入空格,默认值:DO_NOT_INSERT; indent_statements_compare_to_blockTRUE, FALSE在块内缩进语句默认为TRUE; alignment_for_superinterfaces_in_enum_declaration用于枚举声明中的超接口对齐; insert_space_before_question_in_conditionalinsert/do_not_insert在条件表达式的问号前插入空格,默认值:INSERT; insert_space_before_comma_in_multiple_field_declarationsinsert/do_not_insert用于在多个字段声明中在逗号之前插入空格,默认值:DO_NOT_INSERT; alignment_for_compact_if对于紧凑型if的对齐; insert_space_after_comma_in_for_initsinsert/do_not_insert用于在for语句的初始化中在逗号之后插入空格,默认值:INSERT; indent_switchstatements_compare_to_casesTRUE, FALSE对缩进开关语句进行比较默认为TRUE; insert_space_after_comma_in_array_initializerinsert/do_not_insert在数组初始化器中插入逗号之后的空格,默认值:INSERT; insert_space_before_colon_in_defaultinsert/do_not_insert用于在默认语句中冒号之前插入空格,默认值:INSERT; insert_space_before_and_in_type_parameterinsert/do_not_insert用于在通配符前面和里面插入空格,默认值:INSERT; insert_space_between_empty_parens_in_constructor_declarationinsert/do_not_insert在构造函数声明的空括号之间插入空格,默认值:DO_NOT_INSERT; insert_space_after_colon_in_assertinsert/do_not_insert用于在assert语句中冒号之后插入空格,默认值:INSERT; blank_lines_before_imports其中n为0或为正整数在导入声明之前添加空行,默认值:“0”; comment.format_htmlTRUE, FALSE控制HTML标签是否被格式化默认为TRUE; alignment_for_throws_clause_in_method_declaratio用于方法声明中抛出子句的对齐; insert_space_before_closing_angle_bracket_in_type_parametersinsert/do_not_insert用于在类型参数中的结束角括号前插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_bracket_in_array_allocation_expressioninsert/do_not_insert用于在数组分配表达式的左括号前插入空格,默认值:DO_NOT_INSERT; insert_new_line_in_empty_anonymous_type_declarationinsert/do_not_insert在空的匿名类型声明中插入新行,默认值:INSERT; insert_space_after_colon_in_conditionalinsert/do_not_insert在条件表达式的冒号后面插入空格,默认值:INSERT; insert_space_after_opening_angle_bracket_in_parameterized_type_referenceinsert/do_not_insert在参数化类型引用的开始角括号之后插入空格,默认值:DO_NOT_INSERT; insert_space_before_closing_paren_in_forinsert/do_not_insert在for语句的结束括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_postfix_operatorinsert/do_not_insert在后缀操作符之前插入空格,默认值:DO_NOT_INSERT; comment.format_source_codeTRUE, FALSE用于控制代码片段是否在注释中格式化,默认为TRUE; insert_space_before_opening_paren_in_synchronizedinsert/do_not_insert在同步语句中打开括号之前插入空格,默认值:INSERT; insert_space_after_comma_in_allocation_expressioninsert/do_not_insert在分配表达式的逗号后面插入空格,默认值:INSERT; insert_space_after_comma_in_constructor_declaration_throwsinsert/do_not_insert用于在构造函数声明的throw子句的异常名称后面插入一个空格,默认值:INSERT; alignment_for_parameters_in_method_declaration方法声明中参数的对齐; insert_space_before_closing_brace_in_array_initializerinsert/do_not_insert用于在数组初始化器的闭括号前插入空格,默认值:DO_NOT_INSERT; use_tabs_only_for_leading_indentationsTRUE, FALSE用于对缩进和空格进行行包装,默认为FALSE; insert_new_line_after_annotation_on_memberinsert/do_not_insert在成员的注释(包、类、方法、字段声明)之后插入新行,默认值:INSERT; comment.format_headerTRUE, FALSE控制Java源文件的头注释是否被格式化,默认为FALSE; comment.format_block_commentsTRUE, FALSE用于控制多行注释是否被格式化,默认为TRUE; insert_space_before_closing_paren_in_enum_constantinsert/do_not_insert在enum常量中关闭括号之前插入空格,默认值:DO_NOT_INSERT; alignment_for_enum_constants对于枚举常数的对齐; insert_new_line_in_empty_blockinsert/do_not_insert用于在空块中插入新行,默认值:INSERT; indent_body_declarations_compare_to_annotation_declaration_headerTRUE, FALSE将缩进主体声明与其所包含的注释声明头进行比较,默认为TRUE; insert_space_before_closing_paren_in_parenthesized_expressioninsert/do_not_insert在圆括号中的圆括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_paren_in_parenthesized_expressioninsert/do_not_insert在括号内的括号前插入空格,默认值:DO_NOT_INSERT; insert_space_before_closing_paren_in_catchinsert/do_not_insert用于在catch - Option id中关闭括号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_comma_in_multiple_local_declarationsinsert/do_not_insert用于在多个本地声明中在逗号之前插入空格,默认值:DO_NOT_INSERT; insert_space_before_opening_paren_in_switchinsert/do_not_insert用于在switch语句中打开括号之前插入空格,默认值:INSERT; insert_space_before_comma_in_for_incrementsinsert/do_not_insert用于在for语句的增量中在逗号之前插入空格,默认值:DO_NOT_INSERT; insert_space_after_opening_paren_in_method_invocationinsert/do_not_insert在方法调用中打开括号后插入空格,默认值:DO_NOT_INSERT; insert_space_before_colon_in_assertinsert/do_not_insert在assert语句中在冒号之前插入空格,默认值:INSERT; brace_position_for_type_declaration{ END_OF_LINE, NEXT_LINE, NEXT_LINE_SHIFTED, NEXT_LINE_ON_WRAP }用于定位类型声明的大括号,默认值:END_OF_LINE insert_space_before_opening_brace_in_array_initializerinsert/do_not_insert在数组初始化器中插入一个空格前插入一个空格,默认值:DO_NOT_INSERT; insert_space_between_empty_braces_in_array_initializerinsert/do_not_insert在数组初始化器中插入空括号之间的空格,默认值:DO_NOT_INSERT; insert_space_after_opening_paren_in_method_declarationinsert/do_not_insert用于在方法声明中打开括号后插入空格,默认:DO_NOT_INSERT; insert_space_before_semicolon_in_forinsert/do_not_insert在for语句中分号前插入空格,默认:DO_NOT_INSERT; insert_space_before_opening_paren_in_catchinsert/do_not_insert在catch中打开括号之前插入空格,默认值:INSERT; insert_space_before_opening_angle_bracket_in_parameterized_type_referenceinsert/do_not_insert用于在参数化类型引用的开始角括号前插入空格,默认:DO_NOT_INSERT; insert_space_after_comma_in_multiple_field_declarationsinsert/do_not_insert在多个字段声明中在逗号后插入空格,默认值:INSERT; insert_space_before_closing_paren_in_annotationinsert/do_not_insert在注释中的结束括号之前插入空格,默认:DO_NOT_INSERT; insert_space_after_comma_in_parameterized_type_referenceinsert/do_not_insert在参数化类型引用中在逗号之后插入空格,默认值:INSERT; insert_space_after_comma_in_method_invocation_argumentsinsert/do_not_insert在方法调用的参数中在逗号之后插入空格,默认值:INSERT; blank_lines_after_imports其中n为0或为正整数在导入声明之后添加空行,默认值:“0”; insert_space_after_comma_in_multiple_local_declarationsinsert/do_not_insert在多个本地声明中插入逗号之后的空格,默认值:INSERT; indent_body_declarations_compare_to_enum_constant_headerTRUE, FALSE对于缩进体声明与它的封闭枚举常量标题比较,默认为TRUE; insert_space_after_semicolon_in_forinsert/do_not_insert用于在for语句中在分号之后插入空格,默认值:INSERT; never_indent_line_comments_on_first_columnTRUE, FALSE缩进从第一列开始的行注释,默认为FALSE; insert_space_before_opening_angle_bracket_in_type_argumentsinsert/do_not_insert用于在类型参数的开始角括号前插入空格,默认:DO_NOT_INSERT; never_indent_block_comments_on_first_columnTRUE, FALSE对从第一列开始的注释进行缩进,默认为FALSE; keep_then_statement_on_same_lineTRUE, FALSE将语句保持在同一直线上,默认为FALSE; 附录二赠送 赠送几个我在实操中调整了的配置 enum不强制换行。 setting idorg.eclipse.jdt.core.formatter.alignment_for_enum_constants value49/ !--参考文档https://www.5axxw.com/questions/content/pl3la3--需要调整缩进由tab转为空格。 setting idorg.eclipse.jdt.core.formatter.tabulation.char valuespace/自动换行的长度与公司规定不一致。 setting idorg.eclipse.jdt.core.formatter.lineSplit value150/
http://www.zqtcl.cn/news/450597/

相关文章:

  • 北京网站建设市场培训机构参与课后服务
  • wordpress如何添加网站地图上海网站开发设计公司
  • 网站设置反爬虫的主要原因深圳外贸公司上班工资高吗
  • 济南建站价格同仁网站建设公司
  • 石家庄建站软件中国纪检监察报怎么订阅
  • 国内建网站费用厦门房地产网站建设
  • 宝山网站制作网站优化待遇
  • 网站建设项目竞争性招标文件界面设计的重要性
  • 网站建设合同机械设备网络推广方案
  • 阿里巴巴做网站的绿色的医疗资讯手机网站wap模板html源码下载
  • 怎么样自己做企业网站dz采集wordpress
  • 欧 美 做 爱 视频网站阿里巴巴电子商务网站建设目的
  • 动易网站后台修改栏目的字定制型网站设计价格
  • 设计网站页面临夏州建设厅官方网站
  • 给别人做网站需要什么许可证大连做网站开发的公司
  • 哪些网站国内打不开线下推广小组为了推广开放文明环境地图
  • 电子商务网站建设的核心网站收录检测
  • 厦门中小企业建网站补助源码做微信电影网站
  • 利用表单大师做网站网站备案证书放到哪里
  • 辽宁省建设科学研究院网站asp.net做网站 推荐书籍
  • 网站解决访问量超载做国外营销型网站设计
  • 思科中国网站开发案例网站如何进行建设
  • 网页设计与网站建设郑州大学怎么在传奇网站上做宣传
  • 中国建设银行重庆网站首页sns网站需求
  • 外网常用网站全网网站建设设计
  • 成都建设网站费用做数据库与网站招什么人
  • 最好的wordpress教程啥叫优化
  • 哪个网站做网销更好网站流量流出异常
  • 广州网站定做纸箱手工制作大全
  • 数据库修改网站后台密码cms三合一网站源码