Reputation: 851
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
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
Reputation: 7730
First Drag Mouse and Select the Method
then
Press Left(cntrl+shift+/)
to commentPress Left(cntrl+shift+\)
to uncommentUpvotes: 1