在Xcode中4,我已經成功地能夠添加新的自定義快捷鍵左右移動線或複製一個行:Xcode的「動線」的快捷鍵
/Applications/Xcode.app/Contents/Frameworks /IDEKit.framework/Resources/IDETextKeyBindingSet.plist
<key>My Custom Keys</key>
<dict>
<key>Move Line Up</key>
<string>selectLine:, cut:, moveUp:, moveToBeginningOfLine:, paste:, moveUp:</string>
<key>Move Line Down</key>
<string>selectLine:, cut:, moveDown:, moveToBeginningOfLine:, paste:, moveUp:</string>
<key>Duplicate Line</key>
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string>
<key>Delete Line</key>
<string>selectLine:, delete:</string>
</dict>
但移動線向上/向下使用複製/粘貼,這是我想避免的。任何人都知道如何與抽出動的線條,就像重複行,我發現有:Xcode duplicate line
的可能重複所選擇的文本一組新的命令的[在XCode中操作文本,移動一行](http://stackoverflow.com/questions/1380214/manipulating-text-in-xcode-moving-one-line) - 其中一個答案有官方xcode 4快捷方式 – jrturton