设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
2013-08-10 17:04
543 查看
1:设置注释的模板:
下载此模板: codetemplates.xml
搜索Dangzhang,将其改为你自己的姓名,保存
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Code-->Code Templates 右边点Import 选择你写好的模板.xml文件导入进去即可
2:设置格式化的模板:
格式化模板:eclipse-formatter.xml
格式化模版方法同上,只是不是选择Code Templates ,而是选择Formatter。
3:保存时自动格式化代码:
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Editor-->Save Actions 右边选中:
Perform the selected actions on save
Format source code
Format all lines
Organize imports
保存后重启Myeclipse即可。
如下图所示:
下载此模板: codetemplates.xml
搜索Dangzhang,将其改为你自己的姓名,保存
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Code-->Code Templates 右边点Import 选择你写好的模板.xml文件导入进去即可
2:设置格式化的模板:
格式化模板:eclipse-formatter.xml
格式化模版方法同上,只是不是选择Code Templates ,而是选择Formatter。
3:保存时自动格式化代码:
打开eclipse/myeclipse
选择 window-->Preferences-->JAVA-->Editor-->Save Actions 右边选中:
Perform the selected actions on save
Format source code
Format all lines
Organize imports
保存后重启Myeclipse即可。
如下图所示:
相关文章推荐
- 设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
- 设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
- 设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
- 设置Myeclipse中的代码格式化、注释模板及保存时自动格式化
- Myeclipse学习总结(3)——Myeclipse中的代码格式化、注释模板及保存时自动格式化
- Myeclipse学习总结(3)——Myeclipse中的代码格式化、注释模板及保存时自动格式化
- Myeclipse学习总结(3)——Myeclipse中的代码格式化、注释模板及保存时自动格式化
- MyEclipse中代码的格式化,注释模板以及保存时自动格式化
- eclipse代码格式化、注释模板及保存时自动格式化
- Eclipse Java代码格式化模板导入设置,设置保存自动格式化
- 设置Eclipse中的代码格式化模板及保存时自动格式化
- MyEclipse保存文件时 自动格式化代码! 不包括文档注释
- MyEclipse保存时自动进行代码格式化
- 关于eclispe保存代码自动格式化的设置
- Eclipse 设置保存代码时自动格式化
- myeclipse设置Java代码注释模板
- Eclipse设置、导入代码格式化模板,保存即格式化
- Eclipse/MyEclipse怎么设置个性化代码注释模板
- Eclipse保存文件时自动格式化代码 eclipse快捷键设置与常用快捷键
- Eclipse/MyEclipse设置个性化代码注释模板