BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I automatically comment/uncomment selected block?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Vladimir Stefanovic
Guest





PostPosted: Wed Aug 25, 2004 6:30 pm    Post subject: How can I automatically comment/uncomment selected block? Reply with quote




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





PostPosted: Thu Aug 26, 2004 3:58 am    Post subject: Re: How can I automatically comment/uncomment selected block Reply with quote



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





PostPosted: Thu Aug 26, 2004 7:59 am    Post subject: Re: How can I automatically comment/uncomment selected block Reply with quote



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





PostPosted: Thu Aug 26, 2004 11:08 am    Post subject: Re: How can I automatically comment/uncomment selected block Reply with quote

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





PostPosted: Thu Aug 26, 2004 1:47 pm    Post subject: Re: How can I automatically comment/uncomment selected block Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.