【发布时间】:2016-05-27 11:08:59
【问题描述】:
我正在使用 Xcode 7.3 和 Swift 2.2。
关键是我基本上厌倦了“跑步”:
Cmd + A
Ctrl + I
为了缩进整个代码。
所以,我认为我很接近找到解决方案,在 IDETextKeyBindingSet.plist 上创建自己的快捷方式。
<key>My Custom Shortcuts</key>
<dict>
<key>Indent Code In One Hit</key>
<string>selectAll:, ....., moveLeft:</string>
</dict>
我已经做了很多测试用各种命令(结合this)替换'.....',但我还没有找到解决方案。
感谢任何帮助!
【问题讨论】:
-
你是否可以重新缩进你的代码(没有快捷方式)?
-
我认为你的赌注是写一个宏,即使用 AppleScript。
标签: xcode keyboard-shortcuts key-bindings