"Go" add delete Row, copy line shortcut key for Xcode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.