Suppose we have some statement for comments which will be repeat many times. Can We use string resources for code comment in android?
Can We use string resources for code comment in android?
262 views Asked by DeveloperByChoice At
2
Suppose we have some statement for comments which will be repeat many times. Can We use string resources for code comment in android?
No. Comments are ignored by the compiler and runtime engine, therefore there would be no point in referring to a String resource. If you are looking to create the same comment over and over in the source code, recording a macro in Android Studio will do the job better:
Type out your comment
Give your macro a name. Then to use your macro again:
You can also map your macro to a key combination via: