Most of this can/should be resolved with better word-selection 
(control-w) and the recently discussed "remove outer scope" feature:

>   /** bar! */
>   public void b|ar() { int b = 2; }

Works ok now: control-w twice and delete (although I think it should be 
control-w thrice and delete:).

>   String s = fo|o( bar( 30 ) );
[...]
>   tr|y {
>     foo( 30 );
>   } catch ( Exception e ) {
>     bar( 40 );
>   }

Will work with the soon to be implemented:) "remove outer scope" 
feature.

>   try {
>     foo( 30 );
>   } catch ( NullPointe|rException e ) {
>     bar( 40 );
>   } catch ( ArrayIndexOutOfBoundsException ee ) {
>     baz( 50 );
>   }
[...]
>   switch ( a ) {
>     case 1:
>       foo();
>       break;
>     cas|e 2:
>       bar();
>       break;
>     default:
>       baz();
>   }

All of these should work with a few control-w's and delete.

The problem is that control-w has a bug that makes the selection extend 
from a single word to the whole block [try/catch/finally, if/else, 
switch/case/default], skipping the intermediate  catch/else/case part.


Carlos

-- 
Carlos Costa e Silva <[EMAIL PROTECTED]>


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

Reply via email to