| View previous topic :: View next topic |
| Author |
Message |
Vladimir Stefanovic Guest
|
Posted: Wed Aug 25, 2004 6:30 pm Post subject: How can I automatically comment/uncomment selected block? |
|
|
Hi,
How can I automatically comment/uncomment selected block?
I think that there were some shortcut but I have forgotten the
magic combination...
Best regards,
Vladimir Stefanovic
|
|
| Back to top |
|
 |
Craig Farrell Guest
|
Posted: Thu Aug 26, 2004 3:58 am Post subject: Re: How can I automatically comment/uncomment selected block |
|
|
Hi,
| Quote: | How can I automatically comment/uncomment selected block?
|
There is not one that I know of, but if you use
"columnar selecting" you can copy and paste a series
of single line comments in front of so many lines of
code. e.g. create five lines of source that each have
a // in column 1 and 2. Then use Shift+Alt+RightArrow to
select only columns 1 and 2 of the five lines and copy.
Then you can move to and paste in front of the code you
want to comment five lines at a time.
--Craig
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Thu Aug 26, 2004 7:59 am Post subject: Re: How can I automatically comment/uncomment selected block |
|
|
GExperts has a shortcut to do this - see gexperts.org
It's an excellent product for free.
Rgds Pete
"Vladimir Stefanovic" <spam (AT) not (DOT) needed> wrote
| Quote: |
Hi,
How can I automatically comment/uncomment selected block?
|
|
|
| Back to top |
|
 |
Ed Mulroy [TeamB] Guest
|
Posted: Thu Aug 26, 2004 11:08 am Post subject: Re: How can I automatically comment/uncomment selected block |
|
|
There is no automated way to do that but doing it is so simple that
one wonders why anyone should take the time to program it into the IDE
to make it automated.
To do that I put
#if 0
at the beginning and
#endif
at the end of the block.
.. Ed
| Quote: | Vladimir Stefanovic wrote in message
news:412cdbde (AT) newsgroups (DOT) borland.com...
How can I automatically comment/uncomment selected block?
I think that there were some shortcut but I have forgotten the
magic combination...
|
|
|
| Back to top |
|
 |
Vladimir Stefanovic Guest
|
Posted: Thu Aug 26, 2004 1:47 pm Post subject: Re: How can I automatically comment/uncomment selected block |
|
|
| Quote: | To do that I put
#if 0
at the beginning and
#endif
at the end of the block.
. Ed
|
Nice tip, which skips nesting /* ... */ problems.
It's obvious Ed that you come from commandline NGs ;)
Best regards,
Vladimir Stefanovic
|
|
| Back to top |
|
 |
|