Multi line TODOs

Answered

Hi.

I am pondering if the following is useful for more than me -

Sometimes I feel forced to write a very long TODO and then I can't wrap the
text as it would cut the text in the TODO tree.


I would like to have multi line TODOs. The way it can work is to have the
TODO extend until a non comment line is reached, so that:

// TODO Line1
// Line2

will appear as 1 TODO in the TODO tree instead of just having Line1 appear
in the TODO tree.

Another option:
// TODO Line1
// TODO Line2

instead of appearing as 2 TODOs they would appear as 1.

If it makes sense I'll add a request.

Amnon


13 comments

One thing I remember asking a long time ago was that IDEA supported
multiline reg-exp patterns for TODOs (either through the syntax or by
offering a check-box for enabling it).

Having that, you could define a multiline pattern like this

//TODO
//endTODO

or any other way you wanted. I'm not sure why JetBrains chose not to
implement it, I'm quite often in need of being more verbose than I can be on
a single TODO line. Probably they considered that all you need is to find
the start of the TODO item.

I'm for a multiline TODO, let see what others think.

Andrei

"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
news:brle5i$kn2$1@is.intellij.net...

Hi.

>

I am pondering if the following is useful for more than me -

>

Sometimes I feel forced to write a very long TODO and then I can't wrap

the

text as it would cut the text in the TODO tree.

>
>

I would like to have multi line TODOs. The way it can work is to have the
TODO extend until a non comment line is reached, so that:

>

// TODO Line1
// Line2

>

will appear as 1 TODO in the TODO tree instead of just having Line1 appear
in the TODO tree.

>

Another option:
// TODO Line1
// TODO Line2

>

instead of appearing as 2 TODOs they would appear as 1.

>

If it makes sense I'll add a request.

>

Amnon

>
>


1

On Mon, 15 Dec 2003 15:55:48 -0700, Amnon I. Govrin wrote:

Sometimes I feel forced to write a very long TODO and then I can't wrap
the text as it would cut the text in the TODO tree.


I believe I entered an issue for this ages ago...

--
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, CLCA.

1


"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
news:brle5i$kn2$1@is.intellij.net...

Sometimes I feel forced to write a very long TODO and then I can't wrap

the

text as it would cut the text in the TODO tree.


I would loooooove to have multi-line todos.


1

Where do I sign (I want it too)

--
Oded Hassidi


"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
news:brle5i$kn2$1@is.intellij.net...

Hi.

>

I am pondering if the following is useful for more than me -

>

Sometimes I feel forced to write a very long TODO and then I can't wrap

the

text as it would cut the text in the TODO tree.

>
>

I would like to have multi line TODOs. The way it can work is to have the
TODO extend until a non comment line is reached, so that:

>

// TODO Line1
// Line2

>

will appear as 1 TODO in the TODO tree instead of just having Line1 appear
in the TODO tree.

>

Another option:
// TODO Line1
// TODO Line2

>

instead of appearing as 2 TODOs they would appear as 1.

>

If it makes sense I'll add a request.

>

Amnon

>
>


1

; )

I would rather have web modules.

I use my todo tags as a marker, with a brief description. I include
comments directly below the todo if it needs further explanation.


"Michael Jouravlev" <mikus@mail.ru> wrote in message
news:brll79$pbm$1@is.intellij.net...
>

"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
news:brle5i$kn2$1@is.intellij.net...

Sometimes I feel forced to write a very long TODO and then I can't wrap

the

text as it would cut the text in the TODO tree.

>

I would loooooove to have multi-line todos.

>
>


-1

Norris Shelton wrote:

; )

I would rather have web modules.


+10000000... Please finish broken/incomplete functionality before
adding even more to something that works, and that is pretty minimal
since it doesn't stop you from working.

R


I use my todo tags as a marker, with a brief description. I include
comments directly below the todo if it needs further explanation.


"Michael Jouravlev" <mikus@mail.ru> wrote in message
news:brll79$pbm$1@is.intellij.net...

>>"Amnon I. Govrin" <agovrin@freshwater.com> wrote in message
>>news:brle5i$kn2$1@is.intellij.net...
>>
>>>Sometimes I feel forced to write a very long TODO and then I can't wrap
>>
>>the
>>
>>>text as it would cut the text in the TODO tree.
>>
>>I would loooooove to have multi-line todos.
>>
>>


0


"Norris Shelton" <nshelton@appriss.com> wrote in message
news:brn6co$nce$1@is.intellij.net...

; )

>

I would rather have web modules.



Fair enough. :)

Andrei


-1

Amnon I. Govrin wrote:

Hi.

I am pondering if the following is useful for more than me -

Sometimes I feel forced to write a very long TODO and then I can't wrap the
text as it would cut the text in the TODO tree.


I would like to have multi line TODOs. The way it can work is to have the
TODO extend until a non comment line is reached, so that:

// TODO Line1
// Line2

will appear as 1 TODO in the TODO tree instead of just having Line1 appear
in the TODO tree.

Another option:
// TODO Line1
// TODO Line2

instead of appearing as 2 TODOs they would appear as 1.

If it makes sense I'll add a request.

Amnon


There are already similar "feature" items in the tracker.


--
Vladimir Kondratyev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

+1 for multi-line TODO and FIXME

0

Please sign in to leave a comment.