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

Reply via email to