Hi IDEA affictionados !

I have three suggestiong to make :


__________________________
1) Sometimes when I'm writing line comments ( // ) in my code, I often wish
to cut the lines into several lines. But each time I cut a line (hitting the
enter key), the end of the line goes to the new line but I have to go to the
beginning of this new line to add the double /.
Could it be possible to automatically add the // on the new line each time I
split a line ?
Let's see that with an example :

// here is a not too long comment | that I wish to split

When the caret is after "comment", and that I hit enter, I get :

// here is a not too long comment
| that I wish to split

Instead of that, could it be possible to have directly :

// here is a not too long comment
// | that I wish to split


___________________________
2) Another enhancement regarding "Surround with" : when I write some JSP, I
often want to add a surrounding tag around a block of HTM or around a <% ...
%> block. It would be greate if we could hit CTRL-ALT-T and provide a
"surround with tag" and we would just have to type the tag name, just as if
we were writing < TAB (the usual tag completion).
It's a mix between surrounding and tag expansion.


__________________________
3) And finally, a suggestion for what I call an "auto-cast" feature. Lately,
I often find myself working with some collections of objects. And I write
methods to get some of the objects stored in these collections. And
everytime, I have to cast what I get from the collection to the right class.
My suggestion would be to automatically suggest (with the little bright
lamp) a cast. That's why I call that auto-cast. Let's see that with an
example :

public ExchangeRate getExchangeRate(String isoCode) throws
NoSuchElementException
 {
  String iso = isoCode.toUpperCase();
  if (conversions.containsKey(iso))
  {
            return (ExchangeRate)conversions.get(iso);
  }
  else throw new NoSuchElementException("The currency ("+isoCode+") isn't
contained in this table.");
 }

When I type "return conversions.get(iso)", IDEA could guess that I want to
cast this into an "ExchangeRate", because the method signature indicates
that the return type is an ExchangeRate class.
So ideally, when IDEA says there's an incompatible type, it could suggest
the right cast :
"return (ExchangeRate)conversions.get(iso)".




Any comments on these enhancements are welcome !
I think these enhancements are consistant with IDEA's philosophy to increase
the developper productivity.
Do you also think these suggestions might improve your own productivity ?

Cheers,

--
Guillaume



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

Reply via email to