I'm trying to track TODOs in Android studio.
Is there a way to mark them 'complete' without simply deleting them?
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.
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
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With