Feature Request: Join Lines

In the spirit of simple text editing extensions like "Duplicate Text"
(that I use constantly), how about a Join Lines command, that will
join two lines together into a single line, removing extraneous
whitespace.

It's a simple command that I got used in in VI, and always seem to
need. I usually create some horrid little VStudio macro, but that's
clunky and slow.

In VI it works by merging the following line into the current line,
but I suppose it would work well as a selection operation too. i.e.
Remove whitespace containing newlines from entire selection.

4 comments
Comment actions Permalink

Casey Barton schreef:

In the spirit of simple text editing extensions like "Duplicate Text"
(that I use constantly), how about a Join Lines command, that will
join two lines together into a single line, removing extraneous
whitespace.


I'd like that too.

Danny
---

0
Comment actions Permalink

This sounds like what I already achieve by pressing the keys.
This takes me to the end of the current line, then deletes the newline
character(s) and all leading whitespace in the next line.

--


"Danny heijl" <danny.heijl@cevi.be> wrote in message
news:ehn05n$4va$1@is.intellij.net...

Casey Barton schreef:

>
>> In the spirit of simple text editing extensions like "Duplicate Text"
>> (that I use constantly), how about a Join Lines command, that will
>> join two lines together into a single line, removing extraneous
>> whitespace.
>

I'd like that too.

>

Danny
---



0
Comment actions Permalink

On Wed, 25 Oct 2006 01:04:30 -0700, "Lothan" <lothan@newsguy.com>
wrote:
>This sounds like what I already achieve by pressing the keys.
>This takes me to the end of the current line, then deletes the newline
>character(s) and all leading whitespace in the next line.

Yes, and Duplicate Text is just -[Ctrl-V]-[Ctrl-V]. By that
logic we don't need Resharper at all, since we could do all of the
same operations by just pressing a few hundred keys. :)

- Casey

0
Comment actions Permalink

+1

plus:
- if both are comment/documentation lines, remove white space and comment
start, i.e. // or /// or *. (Note that this already does so for
///)


Regards,
Erwin

"Casey Barton" <a@b.com> schreef in bericht
news:nitsj2pus7gpjs8md1tteiakflgc538g5t@4ax.com...

In the spirit of simple text editing extensions like "Duplicate Text"
(that I use constantly), how about a Join Lines command, that will
join two lines together into a single line, removing extraneous
whitespace.

>

It's a simple command that I got used in in VI, and always seem to
need. I usually create some horrid little VStudio macro, but that's
clunky and slow.

>

In VI it works by merging the following line into the current line,
but I suppose it would work well as a selection operation too. i.e.
Remove whitespace containing newlines from entire selection.



0

Please sign in to leave a comment.