Eclipse Easy to use

Source: Internet
Author: User

1.1 Shortcut keys:

1. Ctrl+shift+r: Open Resource

control-shift-t: Open type

control-shift-f: Codeàjavaàpreferencesà reformat code according to the Code style settings.

CONTROL-SHIFT-G: Search for references in Workspace (reference).

ctrl+o: Quickly outline View the method or a specific method of the current class

Ctrl+e: Quick Convert editor helps you navigate between open editors

1. Display line number:

In any Java class, ctrl+f10 the right-click menu, select: Show lines numbers

2. Set Workspace Utf-8 Encoding:

Windows->reference->General->workspace, right Text file encoding, select other , change to UTF-8

general->content Types, right Context Types tree, click Text, select Java Source File, in the Default Enter UTF-8 in the Encoding input box and click Update to set the Java file encoding to UTF-8. The other method is the same if you need to change.

3.java compilation circular Reference, setting

4. Modify the Web project publication name:

Right-click on the Project catalog, select Properties, pop up the attributes window, check Web project Settings, and modify the save in the context root on the right

5.3 Methods can change path settings for workspace

1. After starting Eclipse/myeclipse, open the startup and Shutdown->workspaces, Preferences, Windows, and then tick "Works Paces "Prompt for workspace on startup" in the "page";

2. Open "\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs" with Notepad and change the value of "Show_workspace_selection_dialog" to " True ";

P.S.: The value of "Recent_workspaces" represents the workspace absolute path that has been set. The first path is the currently set path, which was previously set backwards. Each path is separated by "\ n".

3. Remove "\eclipse\configuration\.settings\org.eclipse.ui.ide.prefs".

After doing this, you start again, and the Workspace Launcher dialog box pops up and you can reset it.

Eclipse Easy to use

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.