# What is Mathematica's comment-to-line-end token? [duplicate]

How can I make a full line of code into a comment by typing a single character inserted at start of the line?

In other programming languages I can use characters such as ! , # and language processor will ignore what follows to next newline. I think using (* ... *) is a bit shoddy because it takes six keystrokes.

• What exactly is a line ?:D – Dr. belisarius Aug 5 '15 at 17:38
• It is what it is. Use a keyboard macro if typing causes such grief. Use a different language if even the thought of it troubles you. – ciao Aug 5 '15 at 17:40
• @bel, depends. How wide is your monitor? ;) – J. M.'s ennui Aug 5 '15 at 17:45
• I guess you don't know this: select something, press Alt + /, and presto! – J. M.'s ennui Aug 5 '15 at 17:47
• I extremely rarely type in (* *), but use right-click Un/Comment. – Karsten 7. Aug 5 '15 at 18:40

When I click anywhere in the line sufficiently many times (three times will do it if I click on data) and type Cmnd+/, it changes to