开发者

Method listings when typing '.' after an object

开发者 https://www.devze.com 2023-03-22 01:29 出处:网络
Normally when you put the \'.\' after an object and wait you get a list of methods/fields/classes that one can access. My eclipse no longer does this for me. I spent 10-15 minutes searching for a way

Normally when you put the '.' after an object and wait you get a list of methods/fields/classes that one can access. My eclipse no longer does this for me. I spent 10-15 minutes searching for a way to turn it back on开发者_开发知识库 and I came up empty. How can I turn this back on?


You can try mucking around in

Preferences > Java > Editor > Content Assist

and see what you get. I've had this once before; eclipse got into a bad state and wouldn't code complete for a given project. Reverting changes in the project got rid of some errors and it started working again.


Assuming you're using Java you need to look at setting Java -> Editor -> Content Assist. You want to make sure that "Enable auto activation" is checked and the other options are set to your taste. The auto activation trigger should be the period.

It may not work if you have an error in your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消