Lets say I have a Class "Vehicle
"
In netbeans, I can type:
Vehicle v = new Vehicle();
When i type "v.", I instantly get a list of all the class functions and fields
But in Eclipse, when I type "v." nothing pops up.
Can someone tell me how to enable this option in Eclipse? Also how can I format my code in eclipse?
Edit: When i Press CTRL+Space, after typing "v.", i get a small window that says "No default Proposals"
Vehicle v
and so on), nothing should show up because object v is not created yet. The only 2 things you can do is assign a value (for example by callingnew Vehicle()
like you did), or finish the statement with a semi-colon. – Daniel Gabriel