Closed thany closed 10 years ago
Yes, by adding a .todo
file in your project you change the search scope from the current file to the entire project. There is multiple examples in the documentation how to change the behaviour of the extension.
Please let me know if you run into any problems.
That's not what I mean. Sure, I could add a file to my project, but I prefer putting TODO comments near the code that it applies to, instead of in a separate file.
Yes, I understand. By default the Todo extension will only search the currently active file, but by adding a .todo
file you can change the search scope so that all files are searched at once.
Create a file with the name .todo
in your project root and add the following code:
{
"search": {
"scope": "project"
}
}
All files within you projects will be searched and all comments, in all files, shown in the todo panel.
Ooh, I get it. I though the .todo
file was a file with project-wide todo entries, but I understand it's just a config file. Sorry for misunderstandig :)
No problem. I'll have a look to see if I can make the documentation a bit clearer.
Can this be done? For projects with many files it's a bit tedious to keep going over all files to see if any TODO's are remaining.