Luc*_*nzo 5 xcode keyboard-shortcuts key-bindings
我正在使用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>
Run Code Online (Sandbox Code Playgroud)
我做了很多测试用'.....'代替各种命令(结合这个),但我找不到解决方案了.
任何帮助表示赞赏!
最后我自己找到了解决方案,没有安装任何未经验证的插件。
我认为这可能是具有更高性能的其他解决方案。
编辑IDETextKeyBindingSet
sudo nano /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
Run Code Online (Sandbox Code Playgroud)
添加这个:
<key>My Custom Shortcuts</key>
<dict>
<key>Custom - Indent Code In One Hit</key>
<string>selectAll:, cut:, paste:</string>
</dict>
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
1715 次 |
| 最近记录: |