`

个性化Eclipse代码风格(转载)

 
阅读更多

--http://blog.csdn.net/gogler/article/details/7078285

 

设置方法:

 

我设置的结果,可以IMPORT到ECLIPSE直接

用:


<?xml version="1.0" encoding="UTF-8"?>
-<profiles version="12"> -<profile version="12" name="gogler" kind="CodeFormatterProfile"> <setting value="insert" id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation"/> <setting value="@formatter:off" id="org.eclipse.jdt.core.formatter.disabling_tag"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_field"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while"/> <setting value="false" id="org.eclipse.jdt.core.formatter.use_on_off_tags"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement"/> <setting value="true" id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer"/> <setting value="80" id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_after_package"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters"/> <setting value="2" id="org.eclipse.jdt.core.formatter.continuation_indentation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_package"/> <setting value="1.5" id="org.eclipse.jdt.core.compiler.source"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_line_comments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations"/> <setting value="true" id="org.eclipse.jdt.core.formatter.join_wrapped_lines"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant"/> <setting value="true" id="org.eclipse.jdt.core.formatter.align_type_members_on_columns"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if"/> <setting value="80" id="org.eclipse.jdt.core.formatter.lineSplit"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method"/> <setting value="4" id="org.eclipse.jdt.core.formatter.indentation.size"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant"/> <setting value="@formatter:on" id="org.eclipse.jdt.core.formatter.enabling_tag"/> <setting value="0" id="org.eclipse.jdt.core.formatter.alignment_for_assignment"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration"/> <setting value="mixed" id="org.eclipse.jdt.core.formatter.tabulation.char"/> <setting value="error" id="org.eclipse.jdt.core.compiler.problem.assertIdentifier"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_method"/> <setting value="true" id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for"/> <setting value="false" id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast"/> <setting value="82" id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body"/> <setting value="0" id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_switch"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression"/> <setting value="false" id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch"/> <setting value="error" id="org.eclipse.jdt.core.compiler.problem.enumIdentifier"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_block"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration"/> <setting value="true" id="org.eclipse.jdt.core.formatter.compact_else_if"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments"/> <setting value="true" id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.indent_root_tags"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference"/> <setting value="8" id="org.eclipse.jdt.core.formatter.tabulation.size"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if"/> <setting value="false" id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_empty_lines"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case"/> <setting value="1" id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression"/> <setting value="1.5" id="org.eclipse.jdt.core.compiler.compliance"/> <setting value="2" id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration"/> <setting value="false" id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters"/> <setting value="false" id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type"/> <setting value="enabled" id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_label"/> <setting value="true" id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement"/> <setting value="80" id="org.eclipse.jdt.core.formatter.comment.line_length"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon"/> <setting value="1" id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header"/> <setting value="true" id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block"/> <setting value="false" id="org.eclipse.jdt.core.formatter.join_lines_in_comments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_compact_if"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_before_imports"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_html"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_source_code"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws"/> <setting value="16" id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer"/> <setting value="1.5" id="org.eclipse.jdt.core.compiler.codegen.targetPlatform"/> <setting value="0" id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation"/> <setting value="true" id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_header"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.format_block_comments"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant"/> <setting value="0" id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert"/> <setting value="next_line" id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments"/> <setting value="true" id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries"/> <setting value="1" id="org.eclipse.jdt.core.formatter.blank_lines_after_imports"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations"/> <setting value="true" id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header"/> <setting value="insert" id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for"/> <setting value="false" id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column"/> <setting value="do not insert" id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments"/> <setting value="false" id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line"/> <setting value="false" id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column"/> </profile> </profiles>

分享到:
评论

相关推荐

    eclipse优秀代码风格

    5. **代码格式化**:Eclipse的“Source”菜单下的“Format”功能可以一键按照预设的代码风格格式化代码,提高代码整洁度。 6. **编码约定**:包括类型转换的处理、异常处理策略、避免魔法数字等,这些都是团队内部...

    IDEA与Eclipse统一代码风格codeformatter使用文档

    为了在两个不同的IDE中保持代码风格的一致性,可以使用一个名为CodeFormatter的工具来达到统一的代码格式化效果。这个工具可以帮助开发者在IDEA和Eclipse中使用相同的代码风格,从而减少因风格不一致带来的混淆。 ...

    华为 eclipse 代码风格 模板文件

    华为 eclipse 代码风格 模板文件

    eclipse代码风格配置

    通过这些个性化配置,开发者可以创建一个符合自己习惯且舒适的编码环境,提高编程效率,同时减少长时间工作的身体负担。Eclipse的强大在于其灵活性,允许用户根据需求进行深入定制,打造出独一无二的开发体验。

    eclipse 代码风格颜色配置

    超级漂亮的eclipse代码主题,自定义的,不同的元素设置不同的颜色风格,一眼看穿代码质量。呵呵,喜欢的赶紧下载哦

    eclipse 代码格式化

    这个功能能够帮助开发者快速整理和标准化代码,使得代码风格一致,提高代码的可读性和团队协作效率。 “eclipse 代码格式化”是Eclipse IDE内置的一个重要特性,它可以自动调整代码的缩进、空格、换行等格式问题。...

    Eclipse代码格式化模板

    "Eclipse代码格式化模板"是指用户自定义的代码风格规则,通过导入这样的模板,可以统一团队的代码格式,使得代码看起来更加整洁一致。 Eclipse的代码格式化模板主要包含两大部分:代码格式化设置和代码模板。`puhui...

    eclipse代码注释风格

    Eclipse是一款广泛使用的Java集成开发环境(IDE),它提供了丰富的功能来支持开发者遵循特定的代码注释风格。本文将详细讲解Eclipse中的代码注释风格,以及如何设置和使用这些风格。 一、代码注释类型 Eclipse支持...

    eclipse代码格式化模板

    Eclipse的代码格式化功能就是为此而设计的,它允许用户自定义代码格式化模板,以便按照特定的编码风格对代码进行自动格式化。 标题"eclipse代码格式化模板"指向的就是这个功能,它涉及到Eclipse中的代码风格配置。...

    Eclipse个性化图解

    ### Eclipse个性化配置详解 #### 一、控制台输出与背景颜色调整 ...以上步骤涵盖了Eclipse个性化配置的主要方面,从控制台的美化到代码编辑的优化,再到项目管理的便利性,旨在提升开发效率和编码体验。

    Eclipse代码格式化模版

    Eclipse代码格式化模版,可以参照我的博客进行设置。http://blog.csdn.net/u010028869

    eclipse代码行数统计插件

    因此,Eclipse的代码行数统计插件只是开发辅助工具的一种,它与其他静态代码分析工具、代码格式化器和覆盖率测试工具一起,构成了提高代码质量和效率的完整生态系统。通过合理利用这些工具,开发者可以更有效地管理...

    Eclipse设置Java代码格式化(包含阿里格式化脚本).zip

    `Eclipse`作为一款流行的Java集成开发环境,提供了一系列功能来帮助开发者遵循统一的代码格式化标准。本教程将指导你如何在Eclipse中配置Java、JavaScript、CSS、HTML和XML等语言的代码格式化,特别引入了阿里集团的...

    eclipse代码自动格式化

    eclipse代码自动格式化模版

    eclipse 代码格式模板

    eclipse 代码格式模板 导入xml就行

    eclipse代码格式化与注释配置文件

    首先,`eclipse-java-google-style.xml`是Google提供的Java代码风格指南的Eclipse格式化配置文件。Google以其严谨的代码风格著称,这份配置文件定义了诸如缩进风格(使用空格还是制表符)、代码对齐方式、命名规则...

    Eclipse代码格式配置规范

    Eclipse是一款广泛使用的Java集成开发环境(IDE),它提供了丰富的功能和高度的可定制性,包括代码格式化和编码规范的设置。对于任何开发者来说,遵循一致的代码格式配置规范可以提高代码的可读性和团队协作效率。...

    eclipse格式化代码配置文件.zip

    通过导入这个配置文件到Eclipse,所有项目中的代码在保存时都会按照这些规则进行格式化,确保团队代码风格的一致性。 `cleanup-profile.xml`是Eclipse代码清理配置文件,它包含了对代码进行规范化的规则集合。这个...

    eclipse 代码规范模板定义

    eclipse 代码规范模板定义 eclipse 代码规范模板定义 eclipse 代码规范模板定义

Global site tag (gtag.js) - Google Analytics