How to use TODO feauture?

Ask how to do things or if a certain feature is available in the program.
Post Reply
evolutionary
Posts: 5
Joined: 28 Nov 2025 05:19

How to use TODO feauture?

Post by evolutionary »

Hello.
I dont know how use TODO:
I write in file some TODO lines, save file. But TODO list is empty.
Attachments
td.JPG
td.JPG (94.44 KiB) Viewed 8544 times
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: How to use TODO feauture?

Post by pjj »

There are three problems I can see here:

1) If my memory serves me well (and I don't have a chance rn to verify it easily), TODO panel is for project's TODO; what you need is another panel: Code Explorer.

2) Part of Code Explorer panel for showing TODOs is rather... shy and you need to wait (or switch to another document and go back, or reload your document) for your TODOs to appear; sadly, there is no visual hint that a document is being scanned for TODOs, NOTEs and whatnots (yes, I have filled feature request 8) )

3) You could wait very long for your TODOs to appear in Code Explorer panel, though, and they wouldn't, because they should go inside comments, and in PowerShell you need to use # (or <# .. #> for comments, not //.

Hope that helps.

BTW, I can see there are some bugs with parsing of TODOs in PowerShell:

Code: Select all

# TODO 2
gives TODO level 1, as expected, but

Code: Select all

<# TODO 2 #>
shows level 2 (same goes for 3 and... 33).

Code: Select all

<# TODO foo #>
on a last line doesn't show at all.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
evolutionary
Posts: 5
Joined: 28 Nov 2025 05:19

Re: How to use TODO feauture?

Post by evolutionary »

I tried different methods:

Code: Select all

# TODO: asdf
// TODO: adf
#TODO: adsf
#TODO : asdf
and any more...

I also switch documents, refreshed the list manually using the button "Rescan all files", and never seen a even item.
It feels like they don't work at all.
User avatar
pjj
Posts: 2269
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: How to use TODO feauture?

Post by pjj »

Can you see them in Code Explorer panel?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply