您的位置:首页 > 编程语言 > Java开发

Eclipse中很少用到的键<不断更新>

2011-09-06 22:51 316 查看
 
Generalize Type

对对象的声明可用。

 

Use Supertype Where Possible

对类可用。

 

Correct Identation 选中代码然后对齐

Shift+Left/Right  左移或者右移

Use Supertype Where Possible  对类使用

Matching Bracket  找到匹配的括号

To find a matching bracket select an opening or closing bracket and pressCtrl+Shift+P or selectNavigate > Go To > Matching Bracket. You can alsodouble click before an opening
or after a closing bracket - this selects the text between the two brackets.

 

Wrap stringsYou can have String literals wrapped when you edit them. For example, if you have code like this:
String message= "This is a very long message.";

position your caret after the word "very" and press Enter. The code will be automatically changed to:

String message= "This is a very" +
" long message.";

This behavior can be customized in the

Java > Editor > Typing preference page.

 

Java type indicatorEnable the Java Type Indicator on the

General
> Appearance > Label Decoration
preference page to find out what the first type in a compilation unit or class file is. An adornment is shown for interfaces, annotations, and enums, while an ordinary class stays undecorated.



 

Word wrap in Variables viewThe details area of the debugger's Variables and
Expressions views supports word wrap, available from the view drop-down menu.



http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/tips/jdt_tips.html

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息