just came up with the feature: Smart Ctrl-D

Ctrl-D doubles a piece of code, and that's cool.
But if this piece contains a variable declaration, then Ctrl-D will double this
declaration and the second decl. will be invalid. I (almost always) change the
variable name by hand, and that's what's intended - to create another, but
similar declaration.

Example:

int a = 1;

[Ctrl-D] ->

int a = 1;
int a = 1;

What I really ment is (supposedly)

int a = 1;
int b = 1;

It would be good if IDEA will introduce "b", draw a red border around it, or
pop up the light bulb (recent "intention" feature?) or something like this.

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to