If yes, how ?
If not, is there a workaround to get similar functionality ?
EDIT:
What I mean is something like this :
// TODO line1 // line2 // line3
and line1, line2, line3 belong to the same TODO
and get highlighted with blue.
Since 1.3 Android Studio ships with a set of live templates. One of which does exactly what you want. In order to activate it, simply type todo followed by a tab. Also works with fixme and stopship .
To quickly add a line comment in IntelliJ IDEA, press ⌘ / on macOS or Ctrl + / on Windows and Linux. Block comments or multi-line comments usually take the form of a paragraph.
Toolbar Buttons Select a filter or open the TODO dialog to edit the list of TODO patterns and filters as necessary. Select how to group TODO items in the list. Not available for the Current File tab. Show a preview pane with the source code of the selected file and the corresponding TODO item highlighted.
This is supported since 2018.3.
Multiline TODO comments
IntelliJ IDEA 2018.3 now supports multiline TODO comments, now the first and all subsequent TODO comment lines are highlighted in the editor and listed in the TODO Tool Window. Simply add an indent starting from the second line of your multiline TODO comment, and the IDE will differentiate it from an ordinary comment.
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