Xcode tip – use alt key for selecting code

If you have a code that is in a vertical section and you would like to select it, for copy/cut/paste/delete functions hold down the alt key while dragging your cursor over the code. The screen shot below shows me selecting //’s so that I can uncomment the code
Using alt key to select square not lines

The selection you make can also be used in pasting and will paste vertical down from your cursor point.


Leave a Reply