I have a requirement, I want to put in-line/in-code comment to describe a line of code. e.g Using single liner comment
private foo(List myNameList){
for(String name : myNameList){
//This prints each element of list
System.out.println(name);
}
}
But many GREEN comments all over the code don't looks pretty.
I am just looking for an annotation or a solution to replace each comment with annotation e.g
private foo(List myNameList){
for(String name : myNameList){
@Comment(n)
System.out.println(name);
}
}
And just hovering over this @Comment should display my comment.
Note: In Comment(n) , n is an index of my messages/comments in some text file.