I'm using Xcode 7.3 with Swift 2.2.
The point is that I'm largely tired of "running":
Cmd + A
Ctrl + I
in order to indent the whole code.
So, I think I'm quite close to find the solution, 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 have done a lot of test substituting '.....' with various commands (combining this), but I can't find a solution yet.
Any help is appreciated!
Finally I found a solution by my self, without installing any unverified plugins.
I think that could be other solutions with higher performance.
Edit IDETextKeyBindingSet
sudo nano /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
Adding this:
<key>My Custom Shortcuts</key>
<dict>
<key>Custom - Indent Code In One Hit</key>
<string>selectAll:, cut:, paste:</string>
</dict>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With