Xcode Tips: Selection indent and Block select

Xcode
When working in Visual Studio I find myself using the selection indent/un-indent editor feature a lot. You can select some lines of code, press tab and all the lines will indent. You can also press shift-tab to un-indent the selected lines.

You can do this with Xcode also. The keyboard short cuts are Command-] for indent and Command-[ for un-indent.

Another handy feature of Visual Studio that is also in Xcode is the block select feature. In Visual Studio if you hold down the Alt key while clicking and dragging you can select a block of text whose start and end columns don’t have to be the beginning and end of the line.

You can also do this in Xcode by holding down the Option key while clicking and dragging.

Share and Enjoy:
  • StumbleUpon
  • Digg
  • Reddit
  • del.icio.us
  • Suggest to Techmeme via Twitter
  • Technorati
  • Slashdot
  • HackerNews
  • Twitter
  • Facebook
  • Print
You can leave a response, or trackback from your own site.

5 Responses to “Xcode Tips: Selection indent and Block select”

  1. Eric says:

    Thanks for the great tip. I switched from Dreamweaver to Xcode and greatly missed the selection indent.

  2. Tom Carbone says:

    awesome thanks

  3. Scott says:

    Awesome, just what I needed. Thanks

  4. shahab says:

    Great thanks a lot!

  5. Thanks , because I was looking at it !

Leave a Reply

*