Java Reference
In-Depth Information
This feature can be helpful in team environments, because it lets you create your
own lists of tasks and issues within your code tree. If you're working with a team of
developers, it's a good idea to coordinate on your naming scheme and conven-
tions for creating ToDo items. Here are some ideas for ToDo items:
Unresolved issues or questions that need to be answered
■
Possible bottlenecks and areas that may need to be optimized
■
Code that needs to be refactored
■
Bug fix references or change lists
■
Most major software development efforts use a software suite for track-
ing bugs and feature requests. Using ToDo comments in source code is
no replacement for the visibility, workflow, and project management
benefits that a more sophisticated solution provides.
Immediately after you add or edit your ToDo patterns,
IDEA
must
search your entire source tree to update your ToDo list. This may take a
while on a large project, so be prepared.
WARNINGS
13.2.2
Using ToDo filters
The lower half of the
TODO
settings panel lets you create logical collections of
the patterns you've defined. In the
TODO
window, you can click the filter icon
and select any of the filters you've defined to control the type of items displayed.
You can view just warnings, just the items that were recent bug fixes, and so on. To
define a filter, use the
Add
and
Edit
buttons. All you need to do is specify a name
and select the patterns you want to include. You don't have to type the regular
expressions again—you get to pick the patterns from the list you've already
defined. Left-clicking the filter icon also provides a shortcut to the
TODO
set-
tings, called
Edit Filters
.
13.3
T
he IDEA Commander
The Commander provides an alternate view of your project files. Although the
operations you can perform through the Commander mirror those available
through the
Project
and
Structure
views, the Commander is a more useful tool
when you're performing file-oriented tasks.