Xcode Go to next line hotkey (like intellij's shift enter)

Such a hotkey is not available in Xcode. Since you are new to OS X, I should tell you that emacs shortcuts are available in Xcode and throughout the OS. So, for example, in your case the quickest way to get what you want would be Ctrl-E (move to end of line) followed by enter. You can switch your caps lock and control key easily in System Preferences to make this easier. Check this link for a full list of these bindings. I have found them supremely useful.


Try this:

  1. Copy '/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist' to desktop.

  2. Add following contents into the .plist file:

    <key>My Custom Actions</key>
    <dict>
    <key>Insert Line Below</key>
    <string>moveToEndOfLine:, insertNewline:</string>
    <key>Insert Line Above</key>
    <string>moveUp:, moveToEndOfLine:, insertNewline:</string>
    </dict>
  1. Copy back the modified file. sudo cp ~/Desktop/IDETextKeyBindingSet.plist /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist

  2. Restart the Xcode and perform key binding.