It depends on which language you're writing in (is this CSS, Javascript, HTML?)
For Javascript:
- Ctrl-/ to add or remove // for a single line of code, or for multiple selected lines.
The standard Java commenting shortcuts are:
- Ctrl-/ to add/remove // for a single line of code, or for multiple selected lines.
- Ctrl-shift-/ to add /* */ around selected code.
- Ctrl-shift-J to add Javadoc comments.
You can always find out shortcuts by hitting Ctrl-shift-l, which will bring up a list of all currently available shortcuts. They will change depending on if you have anything selected, what type of file you're editing, etc. Look for "Add comments", "Toggle block comments", "Toggle JS comments", and so forth.