TODO Statements in Android Studio help the coder to create a list of tasks that need to be done within the code. A few benefits to using TODO statements include:
1) When working with a group of people - to help easily identify work that needs
to be done
2) Easily trace a section of code that needs to be improved
3) Identify code that could potentially be done more efficiently
To add TODO statements to your android code simply create a comment that begins with the // TODO text like the example below.
// TODO Add More Code Here
Below the Main Editor Window in Android Studio there is a special tracker for all the TODO statements in your code, opening this window will list all the TODO statements and what files they can be found in
If you click on the TODO statement in the tab it will take you directly to the file and location where that statement can be found, the tab will also indicate the line # that the statement can be found in the file - you can turn line #'s on in the Main Editor Window by Right-Clicking the Left-Hand Side Bar of the Window and selecting SHOW LINE NUMBERS
No comments:
Post a Comment