So there is this new feature which will allow post fixes.
Example is that if I have String s = "hello";
then I can type s.sysout
and Ctrl Space and it will change to System.out.println(s);
In the Eclipse Template proposals, this is what it has System.out.println(${i:inner_expression(java.lang.String)}${});${cursor}
in the description. So basically it works for any String
How can I edit that line so it will work for anything? ie int, double, boolean, anything (it would take that and put it in a System.out.println()
)
Edit: it is not a duplicate, I want to edit the above code in the template so it would work for every data type not just Strings. Right now, there was only 1 answer so I accepted it