Efficient development of iOS series--Add delete row, copy row shortcut keys for Xcode

 

Efficient development of iOS series--Add delete row, copy row shortcut keys for Xcode

http://blog.csdn.net/biggercoffee/article/details/50513899

 


During use eclipse, I like the shortcut keys for deleting a line and copying a line. It happens Xcodethat these two shortcut keys are not supported. Once again, I happened to find a little trick to add these two shortcut keys. The following are the steps: 

 

edit permission



Modify Xcodethe configuration file permissions of the shortcut keys (plist), open the terminal and enter the following two commands:

sudo chmod 666 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist

 

sudo chmod 777 /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/

 

Add shortcut



After the permissions are modified, continue to enter the following command in the terminal to open the plistfile for modification (Xcode opens by default), the command is as follows:

 

open /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist

 

 

 

delete a line


Then find rootthe next one andDeletions add a key below: the  value is:DeletionsDelete Current LinedeleteToBeginningOfLine:, moveToEndOfLine:, deleteToBeginningOfLine:, deleteBackward:, moveDown:, moveToBeginningOfLine:

 

copy a line


Insertions and IndentationsAdd two keys under  
1.  Duplicate Current Line Value: selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward: 
2.  Insert Line Under Value: moveToEndOfLine:, insertNewline:

 

Set shortcut keys

The point is here, restart it Xcode, and then preferencesfind it in there Key Bindings, you can find Delete Current Lineand Duplicate Current Linetwo options, and finally set the shortcut keys you like.


The following two renderings are for reference: 
The modified plist file is as follows: 
write picture description here

 

 

Set shortcut key renderings in Xcode: 
123

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326420236&siteId=291194637
Row