The first stage: JAVA Quick Start (Lesson 17: eclipse Quick Start)

Many people ask, that idea as powerful as described earlier and now 80% of companies are using the idea, then learn eclipse tool is not affected?

A: The company does a lot of use IDEA, but far from what you said so exaggerated, like eclipse and MyEclipse any course is a lot of these companies use mainstream development tools, and each year also constantly upgrade tool.

We know that the tool is only complementary role , the important thing to master technology. As we are learning to use the eclipse, if it is used after the company idea, that technology is not the problem, you can quickly learn to use the idea to develop, in fact, change the configuration of a path and directory hierarchy. Of course, if used in the study is the idea, that if the future is to work with the eclipse, you have to be a conversion tool, so do not be entangled in the tool.

 Shortcuts :( know shortcuts can write code like water without point to point around)

Eclipse commonly used shortcut keys (red must remember!)

hot key description
edit
Ctrl+1 Quick Fix (the most classic shortcut keys, needless to say, can solve many problems, such as import category, try catch surround etc.)
Ctrl+Shift+F Formatting the current code
Ctrl+Shift+M Add class introduced import
Ctrl+Shift+O import import an organization like (both Ctrl + Shift + M effect, but also can help you remove import useless, very useful)
Ctrl+Y Redo (Ctrl + Z to undo the contrary)
Alt+/ Content Assist (how many times can help you save keystrokes, too common)
Ctrl+D Delete the current line or multi-line
Alt+↓ Line current and the interaction location below (particularly useful, can be omitted to cut, and then pasted)
Alt+↑ The current line and the top line interaction position (ibid.)
Ctrl + Alt + ↓ Copy the current line to the next line (Copy increase)
Ctrl + Alt + ↑ Copy the current line to the previous line (Copy increase)
Shift+Enter In the next line of the current row insert blank (mouse at any time of the current line, not necessarily last)
Ctrl+/ Comments on the current line, press the Cancel comment
select
Alt+Shift+↑ Select package element
Alt+Shift+← The choice of an element
Alt+Shift+→ Select the next element
Shift+← From the left to select the character cursor at the beginning
Shift+→ Start right from the cursor to select a character
Ctrl+Shift+← Select the word left of the cursor
Ctrl+Shift+→ Select the word to the right of the cursor
mobile
Ctrl+← Move the cursor to the left at the beginning of the word, the equivalent of vim b
Ctrl+→ Move the cursor to the right end of the word, corresponding to the e vim
search for
Ctrl+K Referring to the selected Word quickly navigate to the next (if not selected word, then search again using the search word)
Ctrl+Shift+K Word quickly locate the selected reference to a
Ctrl+J After the positive incremental find (press Ctrl + J, you enter each letter editor provides fast matching to locate a word, if not, then not found in the status bar, when a search word, particularly useful, to exit this mode, press the escape build)
Ctrl+Shift+J Reverse incremental find (and on the same strip, just forward from the back check)
Ctrl+Shift+U Lists all lines that contain the string
Ctrl+H Open the search dialog
Ctrl+G Work area declarations
Ctrl+Shift+G Quote workspace
navigation
Ctrl+Shift+T Search categories (including third jar package engineering and associated)
Ctrl+Shift+R Search project file
Ctrl+E Editer quickly display the drop-down list of the current (if the current page does not display shown in bold)
F4 Open Type Hierarchy
F3 Jump to declare at
Alt+← A former editor of the page
Alt+→ Next edit page (of course, for the one above it)
Ctrl+PageUp/PageDown In the editor, switch open file
debugging
F5 Step Into
F6 Step Over
F7 Step Return
F8 carry on
Ctrl+Shift+D The value of the variable display
Ctrl+Shift+B Line set or remove the breakpoint current
Ctrl+R Run to Line (super useful, you can save a lot of breakpoints)
Reconstruction (shortcut key is Alt + general reconstruction of the beginning Shift)
Alt+Shift+R Rename the method name, property or variable name (is a favorite with my own, especially variables and class Rename, than the manual method can save a lot of labor force)
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)
其他
Alt+Enter 显示当前选择资源的属性,windows下的查看文件的属性就是这个快捷键,通常用来查看文件在windows中的实际路径
Ctrl+↑ 文本编辑器 上滚行
Ctrl+↓ 文本编辑器 下滚行
Ctrl+M 最大化当前的Edit或View (再按则反之)
Ctrl+O 快速显示 OutLine(不开Outline窗口的同学,这个快捷键是必不可少的)
Ctrl+T 快速显示当前类的继承结构
Ctrl+W 关闭当前Editer(windows下关闭打开的对话框也是这个,还有qq、旺旺、浏览器等都是)
Ctrl+L 文本编辑器 转至行
F2 显示工具提示描述
发布了19 篇原创文章 · 获赞 0 · 访问量 309

Guess you like

Origin blog.csdn.net/ZGL_cyy/article/details/104082777