版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、代码格式化模版导入eclipse 说明书第一步 :打开 eclipse 点击 window 中的 preferences第二步 :点击 java 下的 Code Style 下的 Formatter第三步 :点击 import 按钮选择要导入的模版第四步 :点击打开按钮后进入的页面然后点击Apply 模版就导入成功了格式化代码的快捷键Ctril+Shift+F;格式化前:格式后:格式化代码模版:<?xml version="1.0" encoding="UTF-8"?><profiles version="11"&g
2、t;<profile kind="CodeFormatterProfile"name="hisoft-Formatter"version="11"><settingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if"value="insert"/><setting id="org.eclipse.jdt.core.formatter.insert_space_
3、after_colon_in_assert"value="insert"/><settingid="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant"value="end_of_line"/><setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/&
4、gt;<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns"value="false"/><setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/><setting id="ment.format_line_comments"va
5、lue="true"/><setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve"value="1"/><settingid="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference"value="do not insert"/><settingid=
6、"org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch"value="insert"/><setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations"value="1"/><settingid="org.eclipse.jdt.core.formatter.insert_space_bef
7、ore_parenthesized_expression_in_return"value="insert"/><setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotati
8、on_type_decl aration" value="insert"/><setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body"value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer"value="d
9、o not insert"/><setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line"value="false"/><settingid="ment.insert_new_line_before_root_tags"value="insert"/><setting id="org.eclipse.jdt.core.formatter.insert_space_
10、after_colon_in_for" value="insert"/> <setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_paramete rs" value="do not insert&quo
11、t;/><setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports"value="1"/><setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_be
12、fore_comma_in_enum_constant_arguments"value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk"value="2"/><setting id="org.eclipse.jdt.core.formatter.continuation_indentation"value="2"/><s
13、ettingid="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_param eters" value="insert"/><settingid="org.eclipse.jd
14、t.core.formatter.insert_space_after_opening_paren_in_for"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_paramet
15、ers_in_method_declaration"value="16"/><setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment"value="0"/><setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type"value="1"/><settingid="org.ec
16、lipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression"value="0"/><settingid="org.eclipse.jdt.core.formatter.inse
17、rt_space_before_opening_paren_in_while"value="do not insert"/><settingid="ment.indent_parameter_description"value="true"/><setting id="ment.format_html"value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_space_
18、after_comma_in_allocation_expression"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_en
19、um_constant"value="do not insert"/><setting id="ment.format_source_code"value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations"value="insert"/><settingid="org.eclipse.jdt.cor
20、e.formatter.insert_space_before_closing_angle_bracket_in_parameterized _type_reference" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation"value="insert"/><settingid="org.eclipse.jdt.co
21、re.formatter.insert_space_between_empty_parens_in_method_declaration " value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional"value="insert"/><setting id="org.eclipse.jdt.core.formatter.insert_spa
22、ce_before_unary_operator" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration"v
23、alue="insert"/><setting id="org.eclipse.jdt.core.formatter.indentation.size"value="4"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations"value="insert"/><setting id="org.eclipse.
24、jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration"value="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_co
25、mma_in_enum_constant_arguments"value="insert"/><setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_decl
26、aratio n" value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_argume n
27、ts" value="insert"/><settingid="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration"value="end_of_line"/><setting id="org.eclipse.jdt.core.formatter.lineSplit"value="160"/><settingid="org.eclipse.j
28、dt.core.formatter.insert_space_before_opening_brace_in_type_declaration"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line
29、_in_empty_type_declaration"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_w
30、hile"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant"value="insert"/><settingid="ment.clear_blank_lines_in_block_comment"value="false"/><settingid="org.eclipse.
31、jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after
32、_opening_angle_bracket_in_type_argument s" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_paramet ers" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new
33、_line_before_closing_brace_in_array_initializer"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer"value="end_of_line"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_
34、declaration"value="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration"value="insert"/><s
35、ettingid="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized"value="insert"/><setting id="ment.format_header"value="false"/><setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for"value=&
36、quot;insert"/><setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement"value="do not insert"/><settingi
37、d="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call"value="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration"value="insert"/><settingid="org.eclipse.jdt.co
38、re.formatter.insert_space_before_comma_in_allocation_expression"value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields"value="16"/><setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_
39、if_missing" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_argum ents" value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" v
40、alue="insert"/> <setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement"value="do not insert"/
41、><setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line"value="false"/><setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator"value="insert"/><settingid="org.eclipse.jdt.core.formatter.indent
42、_body_declarations_compare_to_annotation_declaration_header" value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaratio n" value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_s
43、pace_before_closing_paren_in_method_declaration"value="insert"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer"value="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_dec
44、laration_paramet ers" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration"value="end_of_line"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant"val
45、ue="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_m ember_declaration" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_
46、argume nts" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_ type_reference" value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_p
47、aren_in_annotation_type_me mber_declaration" value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field"value="0"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration"va
48、lue="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_para meters" value=&
49、quot;do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch"value="do not insert"/><se
50、tting id="ment.format_javadoc_comments"value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_o
51、pening_paren_in_annotation"value="do not insert"/><setting id="ment.format_block_comments"value="true"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer"value="insert"/><settingi
52、d="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration"value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression"value="16"/><settingid="org.eclipse.jdt.core.formatter.ins
53、ert_space_between_empty_braces_in_array_initializer"value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> <setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value=&qu
54、ot;1"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration"value="16"/><settingid="
55、;org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_s
56、pace_after_and_in_type_parameter"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement"value
57、="do not insert"/><setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups"value="1"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws"value="do not insert"/><set
58、ting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/><setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.brace
59、_position_for_constructor_declaration"value="end_of_line"/><setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/><settingid="ment.clear_blank_lines_in_javadoc_comment"value="false"
60、;/><settingid="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression"value="16"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters"value="do not insert"/><setting id="org.ec
61、lipse.jdt.core.formatter.blank_lines_after_imports"value="1"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_de
62、claration"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference " value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement"value=&quo
63、t;do not insert"/><setting id="blem.assertIdentifier"value="error"/><settingid="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant"value="16"/><setting id="org.eclipse.jdt.core.formatter.brace_position_
64、for_block_in_case" value="end_of_line"/><settingid="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration"value="end_of_line"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments"value="do n
65、ot insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for"value="do not insert"/><settingid="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration"value="1"/><setting id=&quo
66、t;org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> <setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/><settingid="ment.insert_new_line_for_parameter"value="insert"/><settingid="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw"value="do not insert"/><settingi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 酒店前台接待员工作总结
- 高校教研工作的持续改进与创新
- 金融科技行业技术职位总结
- 互娱行业花絮分享培训心得
- 有效规划财务部年终工作总结
- 人机界面设计师界面设计交互设计
- 高危行业安全监管工作方案计划
- 设备维修维护合同范本完整版
- 司法行业审判培训
- 服装店前台接待工作总结
- 2024年营销部工作人员安全生产责任制(2篇)
- ISO 56001-2024《创新管理体系-要求》专业解读与应用实践指导材料之3:4组织环境-4.1理解组织及其环境(雷泽佳编制-2025B0)
- 2024年国家低压电工电工作业证理论考试题库(含答案)
- 2025年上半年山西吕梁市柳林县招聘毕业生70人到村(社区)工作(第二批)重点基础提升(共500题)附带答案详解
- 2024年非煤矿山年终安全生产工作总结
- (正式版)SHT 3046-2024 石油化工立式圆筒形钢制焊接储罐设计规范
- 游戏综合YY频道设计模板
- 幼儿园班级安全教育活动计划表
- ppt模板:创意中国风古风水墨山水通用模板课件
- 纺纱学-ppt课件
- (高清版)严寒和寒冷地区居住建筑节能设计标准JGJ26-2018
评论
0/150
提交评论