I am writing a new better version of my old Android project that will fix a lot of UI bugs but also has a better design, needed for integration of some new features.
As I go through the source I can see all my old and new TODOs in the source, but there are things I remember and forget I want to do in the future and don't fit in any source yet.
Eclipse had a simple list of Tasks in the project on which you could write down and track all bug fixes and new features you wanted for that project. Very handy!
Is there a way add such tasks/issues/notes/todos in Android Studio in the project in general, WITHOUT adding them at a specific place in the sources?
In Android Studio under the Tools menu there is the option for Tasks&Contexts. You can manually add tasks (i.e the todo's you want to perform for your project). It is quite simple, just add a task title, a VCS branch name and changelist, so might not suit your needs.
Also, you can press the Shift twice and write TODO in the search bar to display the TODO panel.
Go to: EDIT -> MACROS -> Start Macro Recording. Since now your actions are recording by Android Studio. Set the cursor on the “TODO” word and press: Left Alt + J // FOR MAC OS X: Ctrl + G / Shift + Ctrl + G (TODO word will be highlighted) See the screenshot #1.
To create a TODO comment Place the caret where you want to create a TODO item and add a comment, for example, by pressing Ctrl+/ , then type TODO or FIXME , and then type your note.
To add a ToDo, just comment anywhere in your code starting with the word ToDo
//Todo: Get count from database instead
To view the list of ToDos, look in the bottom left corner of your Android Studio window:
if you open it, you will get this view with the list of your todos and options to navigate to files where they are located in your project:
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