[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I cannot find how to comment a block
From: |
Robert D. Crawford |
Subject: |
Re: I cannot find how to comment a block |
Date: |
Sun, 09 Apr 2006 16:06:18 -0500 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) |
volunteers@gmail.com writes:
> Hi, I know this is a basic question but I just didn't find the
> solution: in cc-mode (I was writing C++ codes), how can I comment a
> block? I tried 'M-;' and it just adds comments behind that line. What
> I want is to comment this line or several lines (add // in front of
> every line, or /* ... */) . Thanks.
Try C-c C-c or M-x comment-region. To find these things where you think
you might have an idea of the command name, try M-x apropos or C-h a. I
found this by using the command C-h a comment in a C++ file.
rdc
--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Robert D. Crawford rdc1x@comcast.net
You are magnetic in your bearing.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>