Android Eclipse hints Java code shortcut keys

Source: Internet
Author: User

1. Hint that Java code can be used with the alt+/key (if you want to make the first letter of the class or method you need). I added the part: Just to enter Sysout, and then alt+/key can output System.out.prinln (), once always thought their speed is very fast, never thought this shortcut key is too easy to use.

2.ctrl+m current form Maximization
3. ctrl+f7 Window Body Switch
4. Ctrl+f8 mode switch
5.ctrl+f6 edit form Toggle (too big for your fingers)
6.ctrl+e Edit Form Toggle (This is a more elegant point:))
(very handy shortcut key.) Recommended for use with Ctrl+q: Return to last edited place)
8.ctrl+alt+↓ Copy (add) The current line to the next line ctrl+alt+↑ Copy (add) the current row to the previous line alt+↓ the current row and the following line interact (without clipping) alt+↑ the current row and the row above interact Location
9.ctrl+d Delete When moving forward
Alt+enter Displays the properties of the currently selected file (this shortcut is really useful when necessary.) No more right-click on the project file and click Path to copy the project path with it. Open directly. Copy the project path and the path stored in the computer, it is very useful, personal highly recommended)
11.shift+enter Inserts a blank row (the next row) in the current row shift+ctrl+enter inserts a blank row (the previous row) in the current row 12.ctrl+q to the last edited location
Ctrl+l positioning in detail in a row
< Span style= "Color:rgb (70,70,70); Font-size:14px ">    14, ctrl+/gaze at the current line (multiple lines), then press to cancel the gaze (   
    15. Ctrl+shift+r Find File Ctrl+shift+t Find class  
       ctrl+shift+u list the results of the query to  
    16.ctrl+k selected word high-speed positioning to the next ctrl+shift+k selected word high-speed navigation to the previous            17.ctrl+/(numpad) collapses all code in the current class ctrl+x (keypad) expands all the code in the current class Ctrl+shift+p navigate to the match for (such as {}, ()) Ctrl+shift +x toggle characters in uppercase and lowercase (uppercase) Ctrl+shift+y toggle characters in uppercase and lowercase (lowercase)  
 - . ctrl+1 jump out of help when a row is wrong or warning
CTRL+SHIFT+F format typesetting alt+shift+r re-life
(very handy for changing and class names) (be sure to remember the quick
Czech keys. Not one of them)
Alt+shift+c change function Knot alt+shift+m Reconstruction Method (select the method to refactor, regenerate to a new method) Alt+shift+z refactoring restore ctrl+w close the current form ctrl+shift+f4 close all open forms Ctrl+shift +o:import related classes, the same time if the import class, is not used, delete.

Suppose you want to hint at the JSP: Fight it out.

20. Enlarge The Recruit, others say the best to stay in the last side:
Shortcut keys for code folding, which by default are:

Ctrl+shift+numpad_divede (keypad/number)

Ctrl+shift+numpad_multiply (Keypad's * number)
If you don't have a keyboard, you have to define your own shortcut keys.
this post: HTTP://BLOG.SINA.COM.CN/S/BL Og_4034d92f0100njdi.html thanked the predecessor. 
Turn from: http://862123204-qq-com.iteye.com/blog/1989804, this folding function is simply too powerful.
Eclipse default function collapsed (open)
    
 
      Blog Category:
    • MyEclipse and Eclipse
Eclipse

After updating some of the eclipse's plug-ins, each time you open the code eclipse defaults to the code inside the function code and stare, import content is folded, although it seems to be streamlined, but some inconvenient, to a point open.

So I looked up the configuration of the method of folding.

Window->perference->java->editor->folding

And then want to open what by default, folding everything on its own to set up. I'm just going to fold the function without folding it.

If it doesn't work, just look at Window->perference->general->editor->structred-text.

Find a very good self-motivated format file and get rid of unused import classes:

First, the Eclipse compiler provides source format input

Eclipse provides its own active source format option. and organize the input (delete unused code). You can use these shortcut keys to do this.

Ctrl + Shift + F-source format

Ctrl + Shift + o-- organization input and delete unused code

Instead of calling these two functions manually, you can save the file at any time, based on Eclipse's own active format and your own active organization options.

Operation Steps, in Eclipse, go to save actions, Editor, Java, Window, Preferences, and save in the selected way. Finally, check Format source code + Organize imports.

Android Eclipse hints Java code shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.