• 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: Code collapse/expand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code collapse/expand


  • Subject: Re: Code collapse/expand
  • From: David Ewing <email@hidden>
  • Date: Tue, 3 Feb 2004 17:23:16 -0700

On Feb 3, 2004, at 3:31 PM, Keith Renz wrote:

But then you have to find the brace. It's very nice to simply place your cursor in the questionable section of code, especially if the braces are out of view, and press cmd-B (or whatever) to and have the editor select left and right to the nearest set of braces. It was a very nice feature in CodeWarrior which I sorely miss.

As someone already mentioned, there's a balance command in the Format menu. If you use the default CodeWarrior key bindings, it's set to Cmd-B. (If you've customized your key bindings, you'll need to customize this one too.)


I also miss being able to do this and then press the enter key to toggle back and forth from one end of a text selection to the other end when the text selection is larger than the text view. (This applies to any selection, not just from brace to brace.)

This sounds very useful to me. Could you please file an enhancement request at <http://developer.apple.com/bugreporter>. Thanks.


Dave

Keith

-----

On Feb 3, 2004, at 9:26 AM, Jonathan Jackel wrote:

On Feb 2, 2004, at 8:18 PM, Hugh Sontag wrote:

Where would one go about stuffing the ballot box in favor of this
getting implemented sooner than later? :-)

Count me in. The one thing that I miss from Code Warrior is the ability to find out whether my curly braces are balanced. In Code Warrior, command-B would expand a selection to include one additional set of curly braces. It was great for figuring out whether the if or while brackets were right.


Hugh Sontag
Qdea

Double-click on the outermost brace. If your braces aren't balanced, XCode will beep. If they are, it will select the whole code block.


Jonathan
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Code collapse/expand (From: Hugh Sontag <email@hidden>)
 >Re: Code collapse/expand (From: Jonathan Jackel <email@hidden>)
 >Re: Code collapse/expand (From: Keith Renz <email@hidden>)

  • Prev by Date: Re: STLport, boost & undefined symbols in Xcode
  • Next by Date: gcc optimizer bug with Boost ?
  • Previous by thread: Re: Code collapse/expand
  • Next by thread: X-Code .. Does it have a better UI Design tool ??
  • Index(es):
    • Date
    • Thread