Keyboard shortcut to select current line in Xcode
You can actually assign a key command to this. In Xcode under Preferences > Key Bindings > Text search for "Select Line" and assign it to you preferred key command (I also prefer command-l
to match Sublime Text)
Actually you can just use the normal Mac-Shortcuts.
Beginning of Line
cmd + shift + >
Middle of Line
1. cmd + > (this brings you to the end of the line)
2. cmd + shift + < (selects everything to the left)
End of Line
cmd + shift + <
Hope this helps :)
Update
In Xcode 8, I have found the Select Line
keyboard binding which you can set to cmd+l (that's L
, not i
) for instance to make Xcode select the line you're on right now when hitting that shortcut.