eonil
eonil

Reputation: 85955

Moving caret back/forward to previous/next editing position within a document in Xcode 4?

In Xcode 3, I could go back to previous editing point within a document by pressing Command+Control+[Left|Right]. (I'm confusing it was Control or Option... However) In Xcode 4, the key combination is assigned to other feature. Code folding..? What did this key change into?

Upvotes: 7

Views: 2775

Answers (3)

Brian T.
Brian T.

Reputation: 21

Another option for switching to Previous/Next editing position (Go Back/Go Forward) is using two finger swipe (left for Go Back, right for Go Forward). I realize that this is not a keyboard shortcut but if you are using a Trackpad, it is much faster than trying to click on the buttons.

Note: The pointer does need to be in the editor for swiping to work.

Upvotes: 2

mdizzle
mdizzle

Reputation: 175

The shortcut in XCode 4 for "Go forward/backward" is "Control" + "Command" + "Arrow"

This is super annoying for me. When I tried to change the shortcut in the Shortcut Editor back to the Xcode 3 way, Xcode crashes. Fun.

Upvotes: 9

Gary C
Gary C

Reputation: 19

Not 100% sure what you mean by "previous editing point", but Command+Option+Left|Right is code folding. I use Option+Left|Right and Control+Left|Right to move back and forth within the code to get to particular points.

A list of Xcode keyboard shortcuts can be found here

Upvotes: 0

Related Questions