I am using Xcode 7.3 with Swift 2.2.
The bottom line is that I'm pretty much tired of running:
Cmd + a
Ctrl + I
to separate all the code.
So, I think I pretty close found the solution by creating my own shortcut on IDETextKeyBindingSet.plist .
<key>My Custom Shortcuts</key> <dict> <key>Indent Code In One Hit</key> <string>selectAll:, ....., moveLeft:</string> </dict>
I did a lot of tests, replacing "....." with different commands (combining this ), but I can not find a solution yet.
Any help is appreciated!
source share