I tried to move/shift multiple lines horizontally in Xcode, but the tab key did not work. The solution is to select the lines to be moved and hit the following keys:
(command ⌘) + ( ] ) => Right / Indent
(command ⌘) + ( [ ) => Left / Un-indent
To indent a section automatically with a single (control) + (i) short cut, see Xcode Tip: A powerful hotkey/shortcut to format the indentation of multiple lines.
Related Information:
How can I indent multiple lines in xcode?
Xcode Tip: A powerful hotkey/shortcut to format the indentation of multiple lines (control) + (i)
Xcode Tip: Comment Hotkey/Shortcut
No comments:
Post a Comment