Shortcut keys commonly used in MyEclipse

http://www.cnblogs.com/wl0000-03/p/5953989.html
Shortcuts commonly used in MyEclipse

Copy the current line to the next (upper) line:
ctrl+alt+up and down keys

Autocomplete
alt+/

Move line
alt + up and down keys

delete line
ctrl + d

Redo: ctrl+y

double slash comment
ctrl+/

Multi-line double slash comment
ctrl + shift + c

Add content comment
alt+shift+j

Format code
ctrl+shift+f

Output statement
System.out.printIn()
sys+alt+/

Window maximize and restore
ctrl+m

Automatically import class
ctrl+shift+o

Go back to where you last edited:
ctrl+q

Ctrl+O
displays the outline of the methods and properties in the class, which can quickly locate the methods and properties of the class, which is very useful when finding bugs.

Step into(F5)
Step over (F6)
Step return(F7)
Resume(F8)——Jump to the next breakpoint
Run——Remove all BreakPoints

1. [Ctrl+F6]: Switch to the next editor.
2. [Ctrl+Shift+F6]: Switch to the previous editor.
3. [Ctrl+F7]: Switch to the next view.
4. [Ctrl+Shift+F7]: Switch to the previous view.
5. [Ctrl+F8]: Switch to the next perspective.
6. [Ctrl+Shift+F8]: switch to the previous perspective.

Ctrl+Shift+F4 Close all open editors

Ctrl+Shift+X Change all currently selected text to uppercase
Ctrl+Shift+Y Change all currently selected text to lowercase

[Ctrl+K], [Ctrl++Shift+K]
Quickly find the selected content down and up, and no longer need to click the search dialog box with the mouse.

Ctrl+1 auto correction

下面的快捷键是重构里面常用的,本人就自己喜欢且常用的整理一下(注:一般重构的快捷键都是Alt+Shift开头的了)
Alt+Shift+R 重命名 (是我自己最爱用的一个了,尤其是变量和类的Rename,比手工方法能节省很多劳动力)
Alt+Shift+M 抽取方法 (这是重构里面最常用的方法之一了,尤其是对一大堆泥团代码有用)
Alt+Shift+C 修改函数结构(比较实用,有N个函数调用了这个方法,修改一次搞定)
Alt+Shift+L 抽取本地变量( 可以直接把一些魔法数字和字符串抽取成一个变量,尤其是多处调用的时候)
Alt+Shift+F 把Class中的local变量变为field变量 (比较实用的功能)
Alt+Shift+I 合并变量(可能这样说有点不妥Inline)
Alt+Shift+V 移动函数和变量(不怎么常用)
Alt+Shift+Z 重构的后悔药(Undo)

跳到方法内:
F5

跳到下一个断点:
F8

由函数内部返回到调用处:
F7

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324845756&siteId=291194637