This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently the source editor scanned tasklist is cleared every time you switch source files. Martin requested that this behavior is changed such that the tasklist accumulates tasks from the project. I suggested the possibility that this accumulation is on a per-session basis; Martin suggested that it be persisted in MDR. Other tools which provide source scanning seem to clear out the tasklist on file changes, so I suggest we make this behavior optional.
See 27355 which was just implemented.
There now is a scan-directory feature which lets you create a scan list of multiple files. I have filed issue 28304 to track the ability to keep this tasklist "up to date" (for files that are being visited). Between the feature and the enhancement, the need for this enhancement (26458) is in my opinion gone, so I'm closing this as will-not-fix. Track issue 26458 instead to see when you get the hybrid scan-this-file and scan-all-files feature.