Now I know why people complain about xcode's editing capabilities. I find it impossible to code without touching the mouse for one thing or another and this is very frustrating. Anyway I'm used to Sublime Text so to insert a new indented line after the existing line I simply press Cmd+Return, I can't find a way to do that in xcode. Any suggestions is appreciated as I'm starting to consider appcode but don't really want to do that.
Asked
Active
Viewed 2,495 times
2
-
1I use `cmd+right arrow`, `return` for that :-) – Sergey Kalinichenko Oct 02 '13 at 16:17
-
1I use ⌃-e and return. Sometimes Xcode accepts a semicolon to jump to the end of brackets (if you haven't edited that much). – nevan king Oct 02 '13 at 16:20
-
uhmm ya that's how I do it too.. I was hoping for something else. It's hard to believe Apple developers don't get annoyed using arrows or the mouse to move the cursor of to select things. – Marc Nunes Oct 02 '13 at 16:22
-
I found this keyboard shortcut guide in case anyone need it - http://blog.expressionsoftware.com/2013/01/xcode-keyboard-shortcuts.html – Marc Nunes Oct 02 '13 at 16:36
1 Answers
2
Check out this tutorial -Xcode duplicate line to add custom keyboard shortcuts in Xcode.
Then you can just add a new key-value (of your choosing):
Such as:
Insert New Line Below Current Line:
moveToEndOfLine:
insertNewline:
in the IDETextKeyBindingSet.plist file.
And then just configure your keybindings to the shortcut you would like (i.e.. shift+Enter, command+Enter)
You can also do this for any of your favourite shortcuts that may have been ingrained into your muscle memory from excessive use of your favourite editor. Good luck :)