Eclipse shortcut key (Mac OS)

Source: Internet
Author: User
Tags try catch

1. CMD + ALT + R: Rename

Place the cursor over the variable name or method name, press the shortcut key combination, enter the new name to be changed, and press Enter.

2. Shift + enter and CMD + Shift + enter: line feed

Shift + enter creates a blank row under the current row, regardless of whether the cursor is at the end of the row. CMD + Shift + enter insert blank lines before this line.

3. Alt + direction key: Move the code line

You can move the content of the current row up or down. It can be especially used in try catch.

4. Use CTRL/CMD + one letter key

CMD + M is to narrow down the window to the dock.

CMD + D: Delete the code.

CMD + O: quick appearance of outline

CMD + T: displays the Current inheritance structure quickly

CTRL + Q: Go back to the last editing location

CTRL + M: Maximize the editor window.

5. CMD + Shift + B: set breakpoints

6, the original F1-F12 needs to press the FN key:

FN + F3 view Declaration

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.