Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I came into Xcode right from Windows world (as MANY others), and one of the first quirks which I was faced to, was trying to "indent a selected block of text" with the TAB key.</p> <p>Typically, when using a Windows editor, you select a block of text, and whenever you press TAB (or shift TAB) keys, the selected text jumps right/left. Then, once you decide the new position of the text, you stop pressing TAB.</p> <p>OK, in Xcode, this is completely different, because when you press TAB, the whole block of text disappears, leaving you with a silly face, and some anger inside...</p> <p>But then, just by chance or intuition or something, one day I discovered some kind of workaround to achieve the same effect you might get under a proper windows editor. The steps should be these:</p> <ol> <li>Select the text block as you might do under Windows.</li> <li>Instead of pressing TAB, leave your instincts away, and "copy the text block" (typically CTRL+C (yuck)).</li> <li>Then, without deselecting the text, (pressing SHIFT if needed), extend the beginning of the selection and place it on the position you would like your new text to appear.</li> <li>Paste the beforementioned text (typically CTRL+V (yuck again)).</li> <li>Result: The previous text block gets substituted by "the new" one (of course, itself), but the "auto indent" capabilities of Xcode (or someone else, who cares), will auto place the text starting onto the new position we chose in step 3.</li> <li>A big smile appears on your face.</li> </ol> <p>It's kind of tricky, but when you get used to it, you find yourself using it a lot.</p> <p>Enjoy!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload