2

I just switched from Windows and I'm giving Xcode a try. It's really nice, but I have an annoyance when coding - I want to be able to quickly move to the beginning of text in a line of text. However, CMD+left arrow go to the beginning of line, leaving me to manually press right arrow until I get to the first letter.

Can I do something to get a similar behaviour as in Windows?

  • did you find any answer or workaround to this? have you tried clicking Cmd-Left and then Alt-Right? – Patlatus Aug 2 at 13:47
1

From the online OS X: Keyboard shortcuts page @ http://support.apple.com/kb/HT1343z:

Command+ ▶︎ Move the text insertion point to the end of the current line
Command+ ◀︎ Move the text insertion point to the beginning of the current line
Command+ ▼ Move the text insertion point to the end of the document
Command+ ▲ Move the text insertion point to the beginning of the document
Option+ ▶︎ Move the text insertion point to the end of the next word
Option+ ◀︎ Move the text insertion point to the beginning of the previous word

with the ◀︎ icons being the arrow keys on full sized keyboard. Happy typing.

  • Unfortunately, Command+left moves to the beginning of the line, not the beginning of text in a line. – eagerMoose Sep 11 '14 at 6:21
  • Yes, this just restates the same knowledge the asker already knew without providing any help. – Steve Armstrong Feb 5 '16 at 6:07
0

I guess the simplest way to achieve this is to press Cmd-Left and then Alt-Right

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .