Home » Source Code » Eclipse自动格式化&模板设置

Eclipse自动格式化&模板设置

blawancoffee
2017-02-19 01:07:17
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
Eclipse 格式化 注释模板 自动注释Eclipse 格式化 注释模板 自动注释 AllAll

Description

在编写新的源文件、或给相关模块(class、method、field)添加注释是提供一个模板

     导入方式:  

     Eclipse-->Window(菜单)-->Preferences(菜单)-->Java(左侧菜单) -->Code Style(左侧菜单)-->Code Templates(左侧菜单)-->Import(右侧控制按钮)

    通过代码模板自动添加注释

    此模板主要提供java doc风格的注释,所以在新建方法、成员变量时使用doc格式的注释这样可以让编译工具自动在代码中加上模板中的注释。

    通常可以根据Eclipse中快捷键: Shift+Alt+J 来添加不同模块的代码注释(根据当前光标所属位置在对应模块自动添加注释)

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
Eclipse136.87 kB2014-06-09 10:56
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

Eclipse自动格式化&模板设置 (133.73 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D