I am new to java programming and Eclipse, so I would like to know how can I comment or uncomment Java and HTML Code shortcut in Eclipse IDE using Keyboard shortcuts, easily and quickly.
Eclipse Comment/Uncomment shortcut in Windows
For single line Java code comment and uncomment: Ctrl + / (Forward Slash)
For multiple line Java code comment: Ctrl + Shift + / (Forward Slash) and Multiline uncomment : Ctrl + Shift + \ (Backslash)
For single line HTML code comment/uncomment: Ctrl + Shift + c
For multiple line HTML code comment: Ctrl + Shift + / (Forward Slash)
For multiple uncomment: Ctrl + Shift + \ (Backward Slash)
Eclipse Comment/Uncomment shortcut in Mac
Note: You can also open all all shortcut list using Ctrl + Shift + L
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly