-1

I have some comments in this format:

/**
 * public class ListNode {
 *     int val;
 *     ListNode next;
 *     ListNode(int x) { val = x; }
 * }
 */

How to uncomment it?

I have tried shift + ctrl + /, it leads to:

*
 * public class ListNode {
 *     int val;
 *     ListNode next;
 *     ListNode(int x) { val = x; }
 * }
xingbin
  • 27,410
  • 9
  • 53
  • 103

3 Answers3

2

I don't think there is a way to convert javadoc to normal text because this is not a common use-case.

You can replace-all "* " with nothing.

Or use column-edit mode in Notepad++ or Sublime Text if you have occurrences of "* " that you don't want to remove.

xingbin
  • 27,410
  • 9
  • 53
  • 103
Kartik
  • 7,677
  • 4
  • 28
  • 50
1

It was advised to use other tools to edit in column mode, but this is not necessary as Intellij IDEA supports it as well. Using Alt+Shift+Insert shortcut you can enable this mode and remove unnecessary comments. More details about column selection is here.

For the future I would advise to use line comment (//) as you can easily select several lines and use Ctrl+/ to comment them. The same way you could uncomment those as well.

Rufi
  • 2,529
  • 1
  • 20
  • 41
0

All the shortcuts help are here

Community
  • 1
  • 1