Eclipse shortcut to autofill a usefull type of instance variable?
eclipse, java
Solution
With the cursor at the start of the line Ctrl + 1 should bring up a context menu with the option assign to new local variable, I think that is what you are looking for. P.S new rather than New will compile much better ;-)
Problem
What is the Eclipse shortcut for getting an instance variable in this example? If I write ``` new String("TestString"); ``` now I would like to autofill an Instance type of ``` String s = ``` How can I do this with Eclipse IDE to get this result: ``` String s = new String("TestString"); ```