Black Swan
Black Swan

Reputation: 851

making comment a entire method at one time

sometimes it happens that we need to make comment a entire method in Java and reactive, more than once in same code in same time to test something. so is there any way in eclipse by which a method can be commented from its start or end, without going to the end and start for making comment?

Upvotes: 0

Views: 416

Answers (2)

antonio
antonio

Reputation: 18242

Position on the method name and use Alt+Shift+Up twice to select the entire method. Then use Ctrl+/ to comment the selected text.

Upvotes: 0

Neeraj Jain
Neeraj Jain

Reputation: 7730

First Drag Mouse and Select the Method then

  1. Press Left(cntrl+shift+/) to comment
  2. Press Left(cntrl+shift+\) to uncomment

Upvotes: 1

Related Questions