I used Java to ten basic shortcuts

Shortcuts he often used in Java to write it down for future learning purposes;

1. Ctrl + shift + r: Open Resource

This may be all shortcut key combinations in most provinces of time. This shortcut lets you open any file on your workspace, and you only need to press the file name or mask in the first few letters of the name, such as applic * .xml. The only drawback is that this shortcut can not be used in any view.

2. Ctrl + O: Quick outline

If you want to view a particular method or methods of the current class, but do not want to pull down the code, you do not want to use the Find function, then it will use ctrl + O. It can list all the methods and properties of the current class, you simply enter the name of the method you want to query, click enter will be able to jump directly to your desired location.

3. Ctrl + e: fast conversion editor

This shortcut will help you navigate between open editors. Tab before and after use ctrl + page down or ctrl + page up to see, but in a lot of files opened, ctrl + e will be more efficient.

4.Alt + shift + r: Rename

Rename the properties and methods in a few years ago was a very troublesome thing, require extensive use of search and replace, so that the code becomes fragmented. Today's Java IDE provides a source processing functions, Eclipse is the same. Now, variables, and rename the method becomes very simple, you will get used every time you appear better alternative names to do a rename. To use this feature, move the mouse to the property or method name, press alt + shift + r, enter a new name and click Enter. This completes. If you rename a class attribute, you can click alt + shift + r twice, which will call the dialog processing source code, can automatically rename get and set methods.

5.Shift+enter及ctrl+shift+enter

Shift + enter to create a blank line below the current line, regardless of whether the cursor is at the end. Ctrl + shift + enter then insert a blank line before the current line.

6.Alt + arrow keys

Ctrl + Alt + ↓ (↑): down (on) copy of the Bank

Alt + ↓ (↑): down (up) movement of the Bank

This is also a time-saving magic. The combination of the contents of the current line up or down. In the try / catch part, this shortcut, especially so.

7.Ctrl + m: maximize the editor window

Large display screen can enhance work efficiency is we all know. Ctrl + m is the shortcut editor window is maximized.

8.Ctrl + and ctrl + 1:. The next mistake and quickly modified

ctrl +. Move the cursor to the next error or warning at the current file. This shortcut I generally used in conjunction with ctrl + 1, that is, modify the proposed shortcut. The new Eclipse of the proposed changes do very well, can help you solve many problems, such as missing parameter method, throw / catch exception, not the method of execution, and so on.

D + 9.Ctrl : Delete Bank

The SHIFT + + F. 10.Ctrl : automatically formats

Guess you like

Origin www.cnblogs.com/japtx/p/11783777.html