How to comment out several lines.

Andrew Hood ajhood at fl.net.au
Thu May 28 14:49:33 CEST 2009


Eric Bouyoux wrote:
> Hi,
> 
> I would like to comment several successive lines in a file.
> Ex :
> Line1
> Line2
> Line3
> Line4
> 
> becomes
> 
> Line1
> //Line2
> //Line3
> Line4
> 
> I can do it with a regular expression and Replace in selection.
> 
> But I would like to know if it already exists a macro I could bind to a key.

If the language mode is C++ this is in the macro menus.

If it is some other mode you could customise the macro definition to
include your mode as well as C++

-- 
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who


More information about the Discuss mailing list