fabiospampinato / vscode-todo-plus

Manage todo lists with ease. Powerful, easy to use and customizable.
MIT License
902 stars 228 forks source link

Multiline todos when following lines are indented #365

Open svallory opened 1 year ago

svallory commented 1 year ago

First of all: thanks for the great tool!

I know it's been said in #35 that "there's no way to know if the following line belongs to a todo or not" but I would like to suggest that any line following a TODO counts as part of that todo as long as they are indented in relation to the starting position of the TODO marker.

I would even suggest a minimum of 5 spaces so the todo text is nicely aligned and there's less room for mistakes.

e.g:

// TODO This would than be
//      a multiline todo :)
fabiospampinato commented 1 year ago

Technically it's implementable, but the current system relies quite heavily on the fact that that one object in the todo file occupies one line, if that's not the case some optimizations go out of the window. It could still be made fast, but it would require some significant changes.