In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to configure MyEclipse tips. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
As far as MyEclipse prompt configuration is concerned, by default, the code hint function of Eclipse and MyEclipse is much worse than that of Microsoft Visual Studio, mainly Eclipse. Many options of MyEclipse are turned off by default, so developers have to configure them manually. If the developer is not clear, they do not know Eclipse. The code hint function of MyEclipse is as powerful as the code hint function of Microsoft Visual Studio.
First give a simple example to illustrate the problem, for example, by default, in Eclipse, MyEclipse code, typing foreach,switch and so on, you can't get code hints (try it yourself), not to mention others, but get very friendly code hints in Microsoft Visual Studio. In fact, the code hint function in Eclipse, MyEclipse code is generally a dot by default, and only when there is a dot, there will be a code hint.
Principle: the option "Auto Activation triggers for java" refers to the option that triggers the code hint, setting "." Changed to ".abcdefghijklmnopqrstuvwxyz (," means to encounter 26 letters and., (these symbols trigger the code hint function. (it is said later, rest assured)
Enhance the code hint function of Eclipse, MyEclipse 6.5. how to configure it? Let's start with the steps (please note that I use MyEclipse 6.5. otherwise, the principle is the same):
MyEclipse prompts for configuration 1. Open MyEclipse 6.5.Then "window" → "Preferences".
MyEclipse prompts for configuration 2. Select "java", expand, "Editor", select "Content Assist".
MyEclipse prompts for configuration 3. Select "Content Assist" and see the "Auto Activation triggers for java" option under "Auto-Activation" on the right. In fact, it means that what triggers the code hint is "." This symbol.
MyEclipse prompts to configure 4. "Auto Activation triggers for java" this option, in "." Add the abc letter after the letter to facilitate the following search and modification. Then "apply" and click "OK".
MyEclipse prompts for configuration 5. Then, "File" → "Export", select "Perferences" in the pop-up window, and click "next".
MyEclipse prompts for configuration 6. Select the export file path, export to the desktop, enter "test" as the file name, and click "Save".
MyEclipse prompts for configuration 7. Find the file "test.epf" that you just saved on your desktop, and right-click "Open with notepad".
MyEclipse prompts for configuration 8. You can see a lot of information about configuring MyEclipse 6.5.
MyEclipse prompts for configuration 9. Press the "ctrl + F" shortcut, type ".abc", and click "find next".
MyEclipse prompts for configuration 10. The configuration information found for ".abc" is as follows:
MyEclipse prompts for configuration 11. Change ".abcdefghijklmnopqrstuvwxyz (,") from ".abcdefghijklmnopqrstuvwxyz", save, and close "test.epf".
MyEclipse prompts for configuration 12. Go back to the MyEclipse 6.5. interface, "File" → "Import", select "Perferences" in the pop-up window, click "next", select the newly modified "test.epf" file, click "Open", and click "Finish". This step is similar to the export step above.
MyEclipse prompts for configuration 13. * * of course for code testing. Casually create a new project and a new class. In the code input switch,foreach and so on to test. You will immediately find that there is a hint, and no matter which letter you type, there will be a lot of relevant hints, which is very smooth and convenient.
Summary:
The "Auto Activation triggers for java" option refers to the option that triggers the code hint, setting "." Changed to ".abcdefghijklmnopqrstuvwxyz (," means to encounter 26 letters and., (these symbols trigger the code hint function.
Of course, ".abcdefghijklmnopqrstuvwxyz (," you can also add uppercase letters and some other symbols here, specifically, set and adjust yourself as needed.
This Auto activation delay sets the delay time for triggering code prompts. 200 refers to 200ms, which is the default value and can be set according to your needs.
By the way, if the class name and interface name are highlighted in different colors, you can configure it in "java" → "enditor" → "syntac", expand "java" → "classes" on the right, check the option "Enable", and choose your favorite color. Of course, there are other related color configurations.
Thank you for reading! This is the end of this article on "MyEclipse Tips how to configure". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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: 236
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.