Today, I have studied the smart sensing function of myeclispse. When I first started using it, I always felt so uncomfortable → the smart sensing function was too weak! Visual studio2008 is not a class! However, after checking the information on the Internet, I found that it was not so weak. When I played with it last week, I found that I could modify the smart sensing time through the following settings:
Windows → preferences → Java → editor → content assist
We can see that the default value of autoactivation delay is 200 (unit: milliseconds). That is to say, the smart sensing prompt is displayed only after "." is played. So what if I change it to 20? Try it. After it is changed to 20, the system prompts a significant increase in speed, which can keep pace with the times ...... :)
OK. The last modified prompt time. Modify the trigger that triggers Intelligent Sensing this time. That is to say, make it a powerful sensing function like our visual studio2008, that is, input s to prompt all the functions such as the keyword starting with S. It is easy to set the value of auto activation triggers for Java, and change the original trigger "." To "." + 26 × 2 letters. Hmm? Why is it 26 × 2? Because the letters are case-sensitive, 26 in upper case and 26 in lower case. Of course 26 × 2 is the case!
The procedure is as follows:
Go to: Windows → preferences → Java → editor → content assist
Then modify the default value "." of auto activation triggers for Java to ". ABC ". Next, file → export → preferences → export to a certain file (assumed as test. and open test. EPF, search ". ABC "and change it ". abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvw ", save.
Then file → import → preferences → test. EPF, OK, and write the Java program.
You can try it yourself, but it is better to check the effect first:
Input sys smart sensing:
We know that the try code block will appear when you enter try and press two tabs in vs. This function can also be implemented at this time:
Click "Press ENTER" to display the following code block:
How is it? Is it very practical? I believe it will increase your development efficiency several times.
In fact, we can set the above try {} catch {} code block by ourselves. I will not elaborate on it here. If you are interested, you can explore it on your own.