Reputation: 6014
I'm trying to track TODOs in Android studio.
Is there a way to mark them 'complete' without simply deleting them?
Upvotes: 26
Views: 11032
Reputation: 608
in the -> settings/editor/todo and follow the steps. Write the name you'll use to replace "TODO" as the name of the new pattern for step 1.
Upvotes: 16
Reputation: 240
I extended the solution of setting a new pattern of TODO
by adding a MACRO to making the process automatic.
TODO
as I mentioned at the beginning.Then we have to make a macro by executing the following steps:
Go to: FILE -> SETTINGS -> KEYMAP (If you can’t find it, use the search field) See the screenshot #4
Add your own Keyboard Shortcut See the screenshot #5
Click APPLY
THAT’S ALL! Set the cursor on TODO
word in your code and press your preselected shortcut.
Upvotes: 24
Reputation: 11537
The common convention is that when a TODO
is done, then you delete it from the code.
Same with FIXME
or STOPSHIP
. (STOPSHIP
might get picked up by CI servers and sets the build to failed until the comment is removed).
If you want to track progress of completed items, you have other tools available:
// <shortname>/<date>: Fixes #<number of bug
)Upvotes: 22