10 most commonly used shortcut keys in eclipse

Source: Internet
Author: User
Document directory
  • Comment
Those familiar with eclipse must be very touched by its shortcut keys. many, but usually around 10. according to the practice in the project, the following is a little help to some unfamiliar friends.

  • CTRL + Shift + O: Introduce and manage imports statements
  • CTRL + Shift + T: Open Type to search for class files
  • CTRL + Shift + F4: Close the Opened Window
  • CTRL + O: Open declarations
  • CTRL + E: Open the Editor (switch window)
  • CTRL +/: Comment this line
  • Alt + Shift + R: Rename
  • Alt + Shift + L: Extract local variables
  • Alt + Shift + m: Extraction Method
  • F3: Open declaration


  • Review: 10 most commonly used shortcut keys in eclipse

    By sitinspringctrl + D: delete this row

    CTRL + Shift + F: integer

    Re: The most common 10 shortcut keys in eclipse

    By Gandi fengctrl + ALT + ↓ (upper): Copy this row down (upper)

    Alt + ↑: Move the row down (up)

    Alt +.: Output prompt

    Note: I personally think this shortcut key is the most useful. (1) in the Java class, to output the main method, you only need to enter main and then press Enter.
    System. Out. println (). You only need to enter syso and press Enter. For example, to overwrite the tostring () method of the parent class, you only need to enter
    To then press enter with this shortcut key. For example, if you want to use a class without import (such as calendar), you only need to enter Ca and then use this shortcut key to select it with the upper and lower keys. For example, if you want
    Generate the get and set methods for a field. You only need to enter get and then use this shortcut key to generate (the default value is public). Then, for example,... (2) You can enter this prompt on the JSP page.
    Label ). (3) This shortcut is also available in XML.

    Re: the 10 most frequently used shortcut keys in eclipse to reply to more comments

    By Gandi Feng forgot one of the most commonly used ones (but this is a system shortcut key, not a proprietary eclipse)

    CTRL + S: Save the file.

    Others include Ctrl + A, Z, X, C, V; Shift + →; Shift + cursor; here, we are tied together to facilitate your summary and query.

    Re: The most common 10 shortcut keys in eclipse

    By yueda Alt + Shift + J add Doc comments to the Function

    Re: The most common 10 shortcut keys in eclipse

    By William Amy did not even use the brain to save the information, and it was fixed to the hand.

    Re: The most common 10 shortcut keys in eclipse

    By day @ Gandi Feng

    About "Alt +.: The following prompt is displayed: "This is a quick release. I cannot achieve this. I need to use" Alt +/". My eclipse version is 3.3, I wonder if the version is different ~

    Re: The most common 10 shortcut keys in eclipse

    By xibin # Ctrl + Shift + O: import and manage imports statements
    After the formatonsave plug-in is used, it will not be used and will be automatically imported during storage.
    # Ctrl + Shift + T: Open Type to find class files
    # Ctrl + Shift + F4: Close the window opened
    CTRL + W
    # Ctrl + O: Open declarations
    # Ctrl + E: Open the Editor (switch window)
    # Ctrl +/: Comment the line
    # Alt + Shift + R: Rename
    # Alt + Shift + L: extract local variables
    # Alt + Shift + M: Extraction Method
    # F3: open declaration
    Use Ctrl + mouse

    Re: The most common 10 shortcut keys in eclipse [not logged on]

    A menu will pop up after by xmlspyalt + Shift + X,

    Re: The most common 10 shortcut keys in eclipse

    By royal IP @ day

    "Alt +/" is the default value defined by the eclipse hotkey. Its "Alt + .:

    It should have been modified by yourself.

    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.