Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common configuration tutorials for MyEclipse

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains the "MyEclipse commonly used configuration tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "MyEclipse commonly used configuration tutorial" bar!

A working group (working set)

The working group mainly displays multiple related projects in the left project management column at the same time, while other unrelated projects are not displayed, which can avoid too many projects listed in the project management column and reduce the interference between projects. at the same time, it also serves the purpose of classifying projects in the workspace.

Select a workgroup

If not, you will create a new

two。 New workgroup

You can see the "New" button in "Select workgroup"

3. Edit the working group

Second, set the workspace default code

UTF-8 is generally used for coding in Java programming, but the general default encoding for MyEclipse is determined by the operating system locale, and we need to manually specify the default encoding format for the workspace.

In window-- > preferences:

Three default opening methods

For many format types of files, we generally want to open them in a specific way, such as html files, and we generally want to open them in MyEclipse as source code. The settings for how the file is opened by default are described below.

In window-- > preferences:

XML recommended configuration:

HTML recommended configuration:

JSP recommended settings:

Four right-click "New" shortcut method

When we right-click to create a new project or file, there are many options we hardly need, so there is no need to put them in the right-click shortcut menu; and some options we often use, but do we have the right-click shortcut menu? we always need to choose other options to go to the pop-up dialog box. These operations are very inconvenient, here is how to set up the right-click shortcut menu.

In window-- > Customize Perspective, switch to the Shortcuts tab:

For Java Web development, it is recommended to keep the following settings:

1. General (File, Folder)

2. Java (Class, Enum, Interface, Java Project, Package, Source Folder)

3. MyEclipse / Java Enterprise Project (Web Project)

4. MyEclipse / Web (HTML, JSP, Servlet)

5. MyEclipse / XML (DTD, XML Basic, XML Schema)

Recommendation: remove the last Web and XML options when you modify them again, otherwise they will duplicate the previous "recommended retention settings" 4 and 5

Five related source codes

Right-click the project that needs to associate the source code:

Note:

The associated file refers to the compressed file where the source code file is located

The associated directory refers to the directory where the source code file is located

The associated jar file is meaningless

Six set JavaDoc comments

We often need to comment our Java code in accordance with the rules, but there are many comments that are similar, which we can introduce by setting up some templates.

In window-- > preferences:

7. Modify the JSP page text content coding

In window-- > preferences:

8 install the plug-in

There are three main ways to install plug-ins: install online, extract and install, and create link files.

Online installation: the method of online installation varies depending on the version of MyEclipse. My personal version is MyEclipse 2014, in Help à Install from site... And Install from Catalog... Install from site, the way to enter the available URL directly in the pop-up dialog box, according to the prompt for the next step is basically OK; I have not used Install from Catalog, do not comment. Online installation is generally slow and is not recommended. Unzip the installation: download the jar you need and extract the jar file to the MyEclipse8\ dropins directory. This is my personal favorite way to create a link file simply and practically: create a link file in the MyEclipse8\ dropins directory with a custom file name. The contents of the link file: the directory where the path= plug-in is located. After the plug-in is decompressed, the corresponding directory cannot be deleted.

Note: the way of 2 and 3 is to download the plug-in to be installed locally, be sure to pay attention to download the version of the plug-in to be compatible with the version of MyEclipse, it is recommended to download a version of the plug-in before the MyEclipse date, so it is generally compatible.

Thank you for reading, the above is the content of the "MyEclipse commonly used configuration tutorial", after the study of this article, I believe you have a deeper understanding of the common configuration tutorial of MyEclipse, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report