Append refactor

It would be nice if you could refactor code like this:


        sb.append( " :" );
        sb.append( "in <a href=\"" );

Ideally even when such code is mixed in with other code that does not
need to be collapsed, ideally even when sb.append is an analog of
StringBuilder.append, not just StringBuilder itself.
--
Roedy Green Canadian Mind Products
http://mindprod.com

An example (complete and annotated) is worth 1000 lines of BNF.

2 comments
Comment actions Permalink

Hello Roedy,

Please file a feature request at http://youtrack.jetbrains.com/

It would be nice if you could refactor code like this:

sb.append( " :" );
sb.append( "<ul><li>" );
sb.append( "in " );
sb.append( "<a href=\"" );
to this, with just a click:

sb.append( " :<ul><li>in <a href=\"" );

Ideally even when such code is mixed in with other code that does not
need to be collapsed, ideally even when sb.append is an analog of
StringBuilder.append, not just StringBuilder itself.

An example (complete and annotated) is worth 1000 lines of BNF.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Roedy,

Please file a feature request at http://youtrack.jetbrains.com/

It would be nice if you could refactor code like this:

sb.append( " :" );
sb.append( "<ul><li>" );
sb.append( "in " );
sb.append( "<a href=\"" );
to this, with just a click:

sb.append( " :<ul><li>in <a href=\"" );

Ideally even when such code is mixed in with other code that does not
need to be collapsed, ideally even when sb.append is an analog of
StringBuilder.append, not just StringBuilder itself.

An example (complete and annotated) is worth 1000 lines of BNF.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.