Xcode Tips: Selection indent and Block select
April 5th, 2008 Posted in Software Development
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.

![[del.icio.us]](http://trailsinthesand.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://trailsinthesand.com/wp-content/plugins/bookmarkify/digg.png)
![[Reddit]](http://trailsinthesand.com/wp-content/plugins/bookmarkify/reddit.png)
![[Technorati]](http://trailsinthesand.com/wp-content/plugins/bookmarkify/technorati.png)
Related Articles:

No comments yet.