Tips to solve the problem of invalid MyEclipse code prompts

Time: 2022-02-21Source: Huajun Software TutorialAuthor: Changshan Paper Farmer

                                                                                          For friends who encounter the problem of invalid code prompts when using MyEclipse and still cannot solve it, today let’s take a look at the following tips to solve the problem of invalid code prompts in MyEclipse. I hope it will be helpful to you.

​ ​ 1. In MyEclipse, open the menu window->Preferences->Java->Editor->Content Assist->Enable auto activation (can automatically activate the prompt) option and tick it

1.jpg

​ ​ 2. You can reset the shortcut keys for code prompts, because other installed software may conflict with the shortcut keys of the myEclipse development environment, such as input methods. Open the menu windows-->preference-->workbench-->keys to reset the shortcut keys for Content Assist (the default is alt+/)

2.jpg

3. If it still doesn't work, select the proposal kinds contained in the 'default' content assist list: in the tab above window->Preferences->Java->Editor->Content Assist->Advanced and select the Java Proposals (java protocol) option Just tick it

3.jpg

​​ 4. If none of the above methods work, then there may be a problem with some settings of Workspace. Create a new workspace, then copy the .metadata folder in the created workspace, and then paste it into the old workspace to replace the old configuration file.

4.jpg

5. If the problem still cannot be solved, it may be a problem with the Java virtual machine version number. You may be connected to a tomcat server in a development environment and plan to learn the framework (such as the servlet protocol). The servlet protocol 3.0 corresponding to tomcat7.0 and the Java virtual machine version number should be jdk1.7. If jdk1.8 is configured, the code prompt function may fail, or even package import errors may occur when inheriting the Servlet class.

Here are the myeclipse code for you to indicate the solution to the failure. Friends in need should hurry up and read this article.

Related articles更多>>

Popular recommendations