Common shortcuts for Eclipse

Source: Internet
Author: User

I always thought that I was very familiar with eclipse, but I recently read a book and found that I am still far away from using it. I don't know how to use many shortcut keys.

I will list them as follows. On the one hand, I will give my reference at ordinary times. On the other hand, I will remind you to quickly and efficiently use the eclipse tool for development.

1. Shortcut Keys for formattingWhen writing code, developers often need to write formatted Code to facilitate maintenance by others. The shortcut keys for formatting code are shown in the following table.
Express key For use
Ctrl + Shift + U Appears in the file
Ctrl + H Open Search dialog box
Ctrl + G Workspace Declaration
Ctrl + Shift + G Reference in Workspace
Ctrl + Shift + F Format
Ctrl +/ Comment/cancel comment

Ctrl + Shift + M Add Import
Ctrl + Shift + O Organization Import
Ctrl + 1 Automatic Correction
2. Shortcut Keys for debuggingWhen writing code, developers often need to debug the code. The shortcut keys for debugging code are shown in the following table.
Express key For use
F7 Return in one step
F6 Skip in one step
F5 One-Step Jump
Ctrl + F5 Step-by-Step Jump-in selection
F11 Debugging last started
F8 Continue
Shift + F5 Use the filter for one-step execution
Ctrl + Shift + B Add/Remove breakpoints
Ctrl + D Display
Ctrl + F11 Last started
Ctrl + R Run to line
Ctrl + U Run
3. Shortcut Keys for refactoringThe Eclipse shortcut key can also be used to refactor the code. The shortcut keys for refactoring code are shown in the following table.
Express key For use
Alt + Shift + Z Cancel Reconstruction
Alt + Shift + M Extraction Method
Alt + Shift + L Extract local variables
Alt + Shift + I Inline
Alt + Shift + V Mobile
Alt + Shift + R Rename
Alt + Shift + Y Redo

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.