• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Commenting/Uncommenting blocks of code at once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commenting/Uncommenting blocks of code at once


  • Subject: Re: Commenting/Uncommenting blocks of code at once
  • From: Justin Anderson <email@hidden>
  • Date: Wed, 5 Oct 2005 14:20:25 -0400

If you look in the scripts menu (the curled paper icon between "Windows" and "Help") there's a script for commenting out selected code. The script has a keyboard shortcut of cmd-/.

If you take these quotation marks to be the selection, it works like this:

"foo" becomes "//foo"
"//foo" becomes "foo"
//"foo" becomes //"//foo"
"////foo" becomes "//foo"

So when uncommenting, be sure the start of your selection goes exactly to the start of the comment.

Justin

On Oct 5, 2005, at 2:03 PM, Berndt Jung wrote:

Is there some way to comment/uncomment blocks of code?  I've been
using Eclipse for quite some time and am used to some of it's
features.  I'm sure that there is some way to write an applescript to
do so, but I have yet to dabble in applescript.

Thanks,

Berndt

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Commenting/Uncommenting blocks of code at once (From: Berndt Jung <email@hidden>)

  • Prev by Date: Re: Arguments are not being passed correctly -- Please help
  • Next by Date: irritating build results window
  • Previous by thread: Re: Commenting/Uncommenting blocks of code at once
  • Next by thread: valgrind anyone?
  • Index(es):
    • Date
    • Thread