Original URL: http://www.jianshu.com/p/cc6e13365b7e
In the eclipse process of use, special likes to delete a row and copy a row of shortcut keys. and happens Xcode not to support these two shortcut keys, once again happened to let the author found a small trick to add these two shortcut keys, the following are the steps:
Modify Permissions
Modify Xcode The profile permissions in the shortcut key (plist) , open the terminal to enter the following two commands:
chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plistsudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/
Add Shortcut
After modifying the permissions, continue to enter the following command in the terminal to open the plist file for modification (by default, Xcode opens), the command is as follows:
open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist
Delete a row
Then find the root next Deletions , Deletions add a key below: The Delete Current Line value is:deleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:
Copy a row
Insertions and Indentationsadd two keys below:
1. Duplicate Current Line The value is:selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:
2. Insert Line Under the value is:moveToEndOfLine:, insertNewline:
Set shortcut keys
Focus, restart Xcode , and then preferences find in Key Bindings , you can find Delete Current Line and Duplicate Current Line two options, and finally set their favorite shortcut keys can be
The following two sheets are available for reference:
The modified plist file is as follows:
Write a picture description here
Set shortcut keys in Xcode:
Write a picture description here
CSDN Blog Address: http://blog.csdn.net/biggercoffee/article/details/50513899
Wen/Aquarius _ioser (Jane book author)
Original link: http://www.jianshu.com/p/cc6e13365b7e
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
Added tips for Xcode to delete a row and copy a line
Refer to the blog post (my book address), click here: http://www.jianshu.com/p/cc6e13365b7e. You just need a simple three-piece command.
Wen/Aquarius _ioser (Jane book author)
Original link: http://www.jianshu.com/p/039954b0cbe0
Copyright belongs to the author, please contact the author to obtain authorization, and Mark "book author".
"Go" add delete Row, copy line shortcut key for Xcode