-1

How do you add code description like Todo's or put a note in the code that is not a comment, i.e. "//" or "/* ... */""? Sorry for the basic question, I forgot the terminology and therefore cant find what it's called online.

MrHero
  • 3
  • 1
  • 5
  • [This](https://stackoverflow.com/questions/9586478/ide-comment-keywords) is most likely what you're looking for. Cheers – AlexC Aug 04 '17 at 15:05

4 Answers4

1

You mean like an annotation?

import does.nothing.Todo;

@Todo("Refactor this code")
public class Foo {

}
Will Hartung
  • 115,893
  • 19
  • 128
  • 203
0

I don't think the language provides what you are asking for, you must be referring to an ide-specific feature for the TODOs.

Adam
  • 121
  • 1
  • 10
0

I believe you are talking about annotations. There is a stack overflow article here on what annotations are and when to use them.

Luke Thistlethwaite
  • 428
  • 1
  • 4
  • 17
0

I believe they are called task tags. It usually depends on your IDE if they are highlighted in the editor, or if there is a special pane which organizes your tasks.

Eclipse uses: TODO, FIXME, XXX (case sensitive)

//TODO
//FIXME
//XXX

IntelliJ uses: todo and fixme (case insensitive)

//todo
//fixme
Dan Whitehouse
  • 548
  • 1
  • 6
  • 18