MyEclipse Prompt Set JSP XML Auto Prompt

MyEclipse Prompt Set JSP Auto Prompt

1. Shortcut key prompt code

Modify the shortcut key of Content Assist under General-->Keys of window-->Preferences to Alt+/, so that the prompt code can be obtained through the shortcut key

Generally, the default shortcut key is Alt+/

2. Automatic prompt

Window-->preferences java->Editor->Code Assist, check the Enable auto activation checkbox

3. Enhanced automatic prompts

If there is only one in Auto activation triggers for Java in the above 2. That is to say, it will be automatically prompted only after entering., you can modify this configuration, the method:

* Open MyEclipse, go to window-->Preferences, select java-->Editor-->Content Assist

* Add a few letters after the Auto Activation triggers for java option. For example, aaa is convenient for later search and modification, and click the OK button

* Select Perferences in the File-->Export pop-up window, click Next, and select the export file path

* Open the *.epf file you just saved with Notepad

* ctrl + F shortcut key to find the .aaa just entered

* Change .aaa to .abcdefghijklmnopqrstuvwxyz(, save, close Notepad

* Go back to the MyEclipse interface, File-->Import, select Perferences in the pop-up window, next, select the *.epf file you just modified, click "Open", click "Finish"

PS: If 1 and 2 do not work, it is a matter of configuration files, found in the installation directory

eclipse.ini file, open it with Notepad, change "-Duser.language=en" to "-Duser.language=zh", remember to restart MyEclipse after modification

2.xml automatic prompt:

With eclipse, after importing the corresponding package (some people say that there is a prompt even if the package is not imported, because the default eclipse imports the jdk package), eclipse will have a code prompt function.

So can XML files do the same? In fact, it is also possible, but the guide package is different. The following is an example of spring (although Myeclipse 6.5 has been integrated, this is just a demonstration).

进入:window -> Preference... -> MyEclipse -> Editors -> XML ->XML Catalog

Select: Select "User Specified Entries" and click the "Add..." button

Fill in:

URI: Please select the SPRING_HOME\dist\resources\spring-beans-2.0.xsd file on the local file system

Key Type: Select Schema Location

Key:http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

Click OK

Close and reopen the spring configuration file. These xml files can be opened with MyEclipse XML Editor.

3. Automatic prompt of myeclipse:

1、window---preferences---Java---Editor---Contenet Assist

Then in the lower right corner of the sentence "Auto activation triggers for Java:" the right text box value is changed to

".abc", click "OK"

2、File---Export---General---preferences

Select the path of the configuration file on the right side of "To preference file:", you can choose the path as the installation directory of myEclipse, and give the file a name, such as "set.epf"

3. Take the file "set.epf" as an example, open "set.epf", ctrl+f to find ".abc", then change it to ".abcdefghijklmnopqrstuvwxyz" and save it. (When I used to do it for the first time, I thought it would be easier to write ".abc...z" directly in the text box in step 1, but after trying it, I could only write 4 characters in it, so I had to There is this step 3)

4、File---import---General---preferences

Select the path of the configuration file on the right of "from preference file:", finish Step 4 is similar to 2

4. Allow MyEclipse to intelligently sense the function of prompting jQuery

myeclipse itself does not provide support for jquery, you can try aptana.

Like myeclipse, aptana is a huge eclipse plugin. The main function of aptana is the support of js. It integrates various common js frameworks such as jquery, ext, and prototype. IntelliSense is the most basic function. aptana's support for js is not comparable to that of myeclipse. This is the holy tool for writing js.

So you are used to using myeclipse and then using aptana will not have a big habit change.

Of course you can install both plugins. It is best to get a clean eclipse and install it in the way of link, otherwise it may be a bit troublesome to install.

5.myelipse smart tips

Open Eclipse -> Window -> Perferences, it will open the setting interface of Perferences.

You will see that only one "." exists. Indicates: Only after entering "." will there be a code prompt. This is where we want to modify, but Eclipse only allows 4 custom characters to be entered by default.

However, we can export the current settings, save them as a file, modify them in the file, and then import the settings, so that we can break through the limitations of Eclipse.

First, enter a few random characters in the place of "." in the above picture, such as "asdf", and click "OK" at the bottom to save the settings.

Then open Eclipse's File -> Export, expand General -> Perferences-->Export in the window

all then click NEXT. Then click "Browse" to select any path, save the configuration file, and click "Finish".

Open the configuration file you just saved with Notepad (extension file name: *.epf), press "ctrl +

F", enter the "asdf" set just now, and find the string just now. Change "asdf" to "abcdefghijklmnopqrstuvwxyz.", then save and exit Notepad.

Open Eclipse's File -> Import and expand General -> in the opened window

Perferences, click NEXT, select the configuration file you just modified, Finish. Now, open Window ->

Perferences, and expand Java -> Editor -> Content

Assist, you will find that there are more than 4 characters, which means that we will have a code prompt when we enter any letter and ".".

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326784099&siteId=291194637