Some useful eclipse hotkey

Source: Internet
Author: User
  1. Control-shift-T:Open Type. Forget manually navigating through the source tree unless you're procrastinating.
  2. Control-shift-R:Open Resource (looks for more than just java files ).

    A tip to go along with these first two combinations is in the navigator view, accessed from the yellow double-arrowed link with editor icon. this will make the file you open appear in the navigator hierarchy, which is often good orientation information. turn it off if things get too slow.

  3. Alt-left arrow:Go back in navigation history. Works like a web browser's back button and comes in handy after jumping around using F3.
  4. Alt-right arrow:Go forward.
  5. Control-Q:Go to last edit location. This key combination is also handy after you 've been jumping around the Code, especially if you 've drilled down too deeply and have forgotten what you were doing.
  6. Control-shift-G:Find references in workspace. prerequisite to most refactors. for methods, this key combination is basically the opposite of F3, allowing you to navigate backwards up a method stack to find a method's callers. A feature related to this is turning on Occurrence marking. go to window, then preferences, then Java, then editor, then Mark occurrences and select a few checkbox options. this highlights all occurrences in the code when you click an element designated for marking. I personally only use Mark local variables. beware: Enabling too extends highlights can slow eclipse.
  7. Control-shift-F:Reformat code (according to code style settings ). our team agreed on a coding style, and we posted the eclipse code style-rules files to our Wiki. to do that, we sat together in eclipse and went to window, then preferences, then Java, then code style, and configured code formatter, code templates, and organize imports. we used the export function in each of these screens to generate the config files. we put these on the Wiki and everyone imported them into their eclipse.
  8. Control-O:Quick outline. Within the editor, this key combination allows you to jump to a method or attribute by typing a few letters of the name.
  9. Control -/:Comment/uncomment a line. can also work on published lines at a time.
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.