Eclipse common shortcut keys and common configurations

Source: Internet
Author: User

Eclipse common shortcut keys and common configurations

The majority of this article refers to the Eclipse tool usage Tips Summary

Directory
    1. Common shortcut keys
    2. Shortcut keys in breakpoint debugging
    3. Common configuration
1 Common shortcut keys

Ctrl+shift+f formatting of the current code

Ctrl+f11 Run

F11 running in debug mode

Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)

Ctrl+l positioning in a row (for people with programs over 100 have the gospel)

ctrl+/comment on the current line, and then uncomment it

F3 jump to the place of declaration or definition

F4 Display class diagram

Ctrl + Alt +↓ (↑): Copy line down (UP)

2 shortcut keys in breakpoint debugging

Ctrl+shift+b inserts a breakpoint at the current line and then cancels the breakpoint (all breakpoints are canceled under Java view: Run->remove all Breakpoints)

F5: Jumping in method

F6: Debugging down-line

F7: Bounce Method

F8: Jump directly to the next breakpoint

3 Common configurations

Display line number : Window->preferences>general->editors->text editors-> tick show lines numbers

code automatic prompt function- prompt Faster: Windows->preferences->java->editor->content Assist, change the value of autoactivation delay (auto hint latency) from 200ms to 20ms, The automatic prompt is much faster.

code automatic prompt function- will be by "." trigger changed to "." and the an English letter trigger: "Auto Activation triggers for Java" by "." Replace ". Abcdefghijklmopqrstuvwxyz" with the following steps:

1) window->preferences->java->editor->content Assist; on the right auto Activation there's a "auto Activation triggers F Or Java ", whose value is determined by". " Set to ". ABC"; (Convenient for post-search), modify and select OK (OK)

2) file->export->general->preferences; Click Next and select Save Path (this article is saved on the desktop, named TEST.EPF)

3) Open the EPF file saved in step 2nd, open it with Notepad, ctrl+f find the string ". abc", and then change ". ABC" to ". abcdefghijklmnopqrstuvwxyz"; Save and close the Test.epf file

4) go back to the Eclipse interface, click file->import->general->preferences; in the From preference file to select the TEST.EPF files you just saved, click Finish. At this point, the setup is complete. (The next time you write Java code, you encounter "." and 26 letters will appear smart tips)

Eclipse common shortcut keys and common configurations

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.