A way I do it is: * type "new TicketServer()", * Alt-Enter [create the class by intention] * Ctrl-Alt-Left [go back to use point] * Ctrl-Alt-V [introduce variable from expression]
The nice thing about IntroduceVariable and other refactorings is that they automatically select the current line if nothing else is selected. In fact, I have totally gotten out of the habit of declaring fields/variables before use. Now, I just type the expression of interest, and let IDEA create the field/variable for me. I'm doomed if IntelliJ ever goes out of business - I won't know how to write code the old way anymore! -Alex Dommasch Alain Ravet wrote: > When creating a new class by intention, > (see attachment) > IDEA should > 1°/ put the intended class name on top of the list, or > 2°/give some easy way to access it. > > Alternatively, it could be > 3°/triggered by [Ctrl-Shift-Space]. > Currently, it only gives us a > "No type suggestions for TicketServer" > > > Alain Ravet > > ------------------------------------------------------------------------ > _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-features