The shortcut keys in eclipse

Source: Internet
Author: User

When we write the Get set method, we often have to right-click to select ... or the menu bar to choose Source and then how how, more trouble, also slower, then we can quickly generate by shortcut

Get Set Method: Press Shift+alt+s to eject source, and if you want to generate a get Set method for a field, notice that one of the words in the Get set has a short line below it and enter that.

After the letter, you need to generate a get set method of the field, you can generate, note that the following is also the generation of comments, the location of the generated get set can be selected,

Quick FIX: Ctrl+1: This shortcut is called you to move the mouse to the wrong position after pressing this ctrl+1 suggest how you modify the error

How to view the source code? The first step, download the JDK source package, of course, then the JDK source code should be installed in the JDK folder can also find Src.zip, such as you want to view HashSet source code, press CTRL + Mouse click, if the attach source appears, click on it, Then select Add Src.zip

The JDK file, of course, if the downloaded JDK is jar format select jar instead of folder ...

After that many classes have been opened, how to switch to the left and right classes, you can choose the fast plus ALT + LEFT and RIGHT arrow keys to switch between classes.

Reset perspective: You can window->reset perspective to reset the normal bounds of the window when your window is being dragged to shreds.

Save As perspective saving perspective

Change to uppercase: ctrl+shift+x;

Change to lowercase: ctrl+shift+y;

To view the inheritance relationship of a class Ctrk+t: This shortcut is commonly used in the Java collection framework

View the two forms of source code:

Write a class hashset in your code, and then you want to see this hashset source code, the way is CTRL + mouse click

Ctrl+shit fee +t can open a box, enter the source code of the class you want to see in the return to see its corresponding source code

Ctrl+shift+l See all the shortcuts in eclipse


The shortcut keys in eclipse

Related Article

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.