Is there any easy way to open a new line below current line in Xcode text editor? Currently I have to press cmd+right and enter for this purpose. Eclipse (Shift+Enter) and vim (o) can do that with simple key combination.
Is there any easy way to open a new line below current line in Xcode text editor? Currently I have to press cmd+right and enter for this purpose. Eclipse (Shift+Enter) and vim (o) can do that with simple key combination.
The answer is
1. open this file
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
2. option click (context menu) and select Add Row
3. Give any name (e.g My Custom) choose **Dictionary as it's type
4. click + icon on this new dictionary. a new field will appear, enter your preferred name (e.g insert new line below).
5. enter moveToEndOfLine:, insertNewline: as it's value
6. save the file.
7. quit and relaunch Xcode
8. open preferences, go to key bindings and search for your name insert new line below
assign a shortcut.
enjoy!
NOTES if you have permissions problem in saving the file. just copy the file to your desktop, edit it, and then move the file to the location /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/