[TxMt] Re: Reformat Selection (^Q) and Java

Luke Daley ld at ldaley.com
Thu Apr 30 03:19:49 UTC 2009


On 30/04/2009, at 5:15 AM, Elliot Kroo wrote:

> When editing comments in TextMate, I frequently use the Reformat
> Selection text routine to fix paragraphs who's lines have gone past 80
> characters long (my Wrap Column).  Unfortunately this has some
> unexpected side-effects in Java, which along with nicely reformatting
> my selected comments (respecting the *s in the beginning of the line
> even!) adds redundant starting and ending comments: /* and */.  Why
> does this happen?  What can I do to fix this?
>
> To reproduce, select a few lines inside a javadoc-formatted Java
> comment (/** * */), and hit ^Q.

Is there a bundle you can point me at that does the right thing here?



More information about the textmate mailing list