More than 30 Shortcut Keys most commonly used in eclipse

Source: Internet
Author: User
  • 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
  • CTRL + D: delete this row
  • CTRL + Shift + F: Adjust the format
  • CTRL + ALT + ↑: copy the row down (up)
  • 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 to press the shortcut key; to output the system. out. println (), you only need to enter syso and press enter with this shortcut key. For example, to overwrite the tostring () method of the parent class, you only need to enter to and 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 the CA and then use the shortcut key to select from the upper and lower keys. For example, if you want to generate a get for a field, set Method, you only need to enter get and then use this shortcut key to generate (the default is public); then, for example... (2) You can use this prompt to enter tags on the JSP page (tag attributes are prompted in the tag ). (3) This shortcut is also available in XML.
  • 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.
  • Alt + Shift + J add Doc comments to the Function
  • # 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
  • After Alt + Shift + X, a menu is displayed,

     

     

     

  • 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.