Henrik, IDEA will have two possibilities in this case. First additional one will be "Create Local Variable". Another one will be "rename" - it will rename all "red" references to the one, you've specified.
Best regards, Mike Aizatsky. ------------------------------ IntelliJ Software, "Develop with pleasure!" http://www.intellij.com > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:eap-features- > [EMAIL PROTECTED]] On Behalf Of Henrik Klagges > Sent: Thursday, February 07, 2002 10:55 PM > To: [EMAIL PROTECTED] > Subject: Re: [Eap-features] programming by intention - fields > > > a similar use-case: > > > 1.) You paste in a bit of code, say > > f(longAndBoringVariableNameThatIsYetUnknownBecauseItWasPasted); > > > 2.) Then you position the cursor above the pasted line, and start > a variable declaration, like this: > > String _ <-your cursor here > f(longAndBoringVariableNameThatIsYetUnknownBecauseItWasPasted); > > 3.) Then you press ctrl-blank: > > nothing happens. Hm. Maybe Idea should propose to declare the > unknown longAndBoringVariableNameThatIsYetUnknownBecauseItWasPasted ? > > Note that this could also be solved by emacs-style "nearest-text-token- > completion", i.e. a non-intelligent, string-matching only completion. > > Cheers, > Henrik > > ----- Original Message ----- > From: "Erb" <[EMAIL PROTECTED]> > To: "EAP features" <[EMAIL PROTECTED]> > Sent: Thursday, February 07, 2002 8:46 PM > Subject: [Eap-features] programming by intention - fields > > > > It would be nice if, when I type an undeclared variable name, the > > lightbulb givs me > > a dialog to select options right away such as: static, final, visibility > > (public, etc.), > > and maybe if I want to make this a field or just a local > > variable in the current method. (I know that last case is probably less > > important, > > but could be nice.) > > -- > > > > Erb > > > > _______________________________________________ > Eap-features mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-features _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
