Eclipse Common Operations

Source: Internet
Author: User

an Eclipse common shortcut key
  1. Ctrl+q: Jumps to the last edit point.
  2. Ctrl+f: Finds and replaces in the current file.
  3. Ctrl+t: View the inheritance relationship for the class.
  4. ALT + LEFT ARROW: Returns to the previous position of the cursor.
  5. ALT + RIGHT ARROW: Advances to the next position of the cursor.
  6. alt+shift+s: Open the right-click menu, note that after opening the context menu, the items also have shortcut keys, R generate Getter/setter method, V rewrite or implementation method, o use attributes to create constructors, c to inherit parent class constructor classes to create constructors.
  7. ctrl+shift+/: Add a block comment.
  8. Ctrl+shift+\: Cancels the block comment.
  9. ctrl+/: Adds or cancels line comments.
  10. Alt+shift+l: Extracts a local variable, such as extracting the literal value, to create a reference variable for it.
  11. Ctrl+shift+r: Find local resources.
  12. Alt+shift+r: Rename.
  13. Ctrl+h: Finds the file that contains the specified content.
  14. Alt+shift+z: Add a try---Catch to the selected code.
  15. Alt+shift+z+3: Wraps the selected code into an if statement.
  16. ALT + UP ARROW/down ARROW: Place the cursor on one line, and move the row up or down.
  17. ctrl+alt+ up ARROW/down ARROW: Copies a row up or down.
  18. Alt+shift+m: Creates a method for the selected code.
  19. Alt+shift+x,t: Run in JUnit.
  20. ALT +?: Displays what you can insert in the current position, and outputs the selected content through System.out.println.
  21. Shift+enter: Inserts a blank line under the current line.
  22. Alt+shift+a: Turns multi-line editing mode on or off.

Eclipse Common Operations

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.