Question: how to comment multiple lines of code in eclipse?
Answer: For single line comment you can use Ctrl + / and for multiple line comment you can use Ctrl + Shift + / after selecting the lines you want to comment in java editor. On Mac/OS X you can use ⌘ + / to comment out single lines or selected blocks. Ctrl + SHIFT + L which will open a list of all major shortcuts for eclipse.