Reformat (comment) paragraph

View: New views
3 Messages — Rating Filter:   Alert me  

Reformat (comment) paragraph

by Nikolaus Rath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Is there a way to reformat a paragraph when it has become ragged due to
editing? In other words, the comment

# This is the
# result of heavy editing which unfortunately left the newlines at quite unfortunate positions, since some
# are way to early and others way to late in the tex.

should automatically become

# This is the result of heavy editing which unfortunately left the
# newlines at quite unfortunate positions, since some are way to early
# and others way to late in the tex.

(in emacs this function is called fill-paragraph and extremely useful,
but I couldn't find anything similar in eclipse).


Best,


   -Nikolaus

--
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Reformat (comment) paragraph

by Fabio Zadrozny-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nikolaus,

Pydev has it (it was added by Don Taylor with the scripting engine and
can be activated through Ctrl+2+W).

Cheers,

Fabio

On Sat, Jun 27, 2009 at 9:51 PM, Nikolaus Rath<Nikolaus@...> wrote:

> Hello,
>
> Is there a way to reformat a paragraph when it has become ragged due to
> editing? In other words, the comment
>
> # This is the
> # result of heavy editing which unfortunately left the newlines at quite unfortunate positions, since some
> # are way to early and others way to late in the tex.
>
> should automatically become
>
> # This is the result of heavy editing which unfortunately left the
> # newlines at quite unfortunate positions, since some are way to early
> # and others way to late in the tex.
>
> (in emacs this function is called fill-paragraph and extremely useful,
> but I couldn't find anything similar in eclipse).
>
>
> Best,
>
>
>   -Nikolaus
>
> --
>  »Time flies like an arrow, fruit flies like a Banana.«
>
>  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@...
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>

------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

Re: Reformat (comment) paragraph

by Nikolaus Rath :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That works nicely, thanks!

Is there any way I could have figured this out without asking? This
feature seems extremely well hidden and I'm wondering if there are more
useful shortcuts that I don't know about...


Best,
Nikolaus


Fabio Zadrozny <fabiofz@...> writes:

> Hi Nikolaus,
>
> Pydev has it (it was added by Don Taylor with the scripting engine and
> can be activated through Ctrl+2+W).
>
> Cheers,
>
> Fabio
>
> On Sat, Jun 27, 2009 at 9:51 PM, Nikolaus Rath<Nikolaus@...> wrote:
>> Hello,
>>
>> Is there a way to reformat a paragraph when it has become ragged due to
>> editing? In other words, the comment
>>
>> # This is the
>> # result of heavy editing which unfortunately left the newlines at quite unfortunate positions, since some
>> # are way to early and others way to late in the tex.
>>
>> should automatically become
>>
>> # This is the result of heavy editing which unfortunately left the
>> # newlines at quite unfortunate positions, since some are way to early
>> # and others way to late in the tex.
>>
>> (in emacs this function is called fill-paragraph and extremely useful,
>> but I couldn't find anything similar in eclipse).
>>
>>
>> Best,
>>
>>
>>   -Nikolaus
>>
>> --
>>  »Time flies like an arrow, fruit flies like a Banana.«
>>
>>  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Pydev-users mailing list
>> Pydev-users@...
>> https://lists.sourceforge.net/lists/listinfo/pydev-users
>>
>
> ------------------------------------------------------------------------------


   -Nikolaus

--
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


------------------------------------------------------------------------------
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users