3 ms·
It's one of the things I really missed when going from C# to Java, but with IntelliJ, the typing experience is very similar from C#. Imagine I want to have a v
by Insanity 9y ago
It's one of the things I really missed when going from C# to Java, but with IntelliJ, the typing experience is very similar from C#.
Imagine I want to have a variable like:
Person p = new Person("John");
All I would type in IntelliJ is:
new Person("John").var
After pressing "tab", that will autocomplete for me and put the focus on the variable name so I can rename it from the default inferred value.
- vbezhenar 9y agoAlso you can use "introduce variable" refactoring (ctrl+alt+V in Windows). Type "new Person("John")" and immediately press ctrl+alt+v.
- Insanity 9y agoIndeed, but for me that feels less natural. Matter of taste I suppose :-)
- adrianmonk 9y agoDon't most decent IDEs support something like that? In Eclipse you can just type new Person("John") And then hit Ctrl-2 L.
- Insanity 9y agoVery well possible, but I'm not familiar with key combinations for other (Java) IDEs.