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

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?

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.

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.

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

Related

Arrow key to move cursor down one line in text editor stopped working

I can no longer use just the down arrow keyboard key to move the cursor down one line in the text editor. Using arrow keys to move up, left, and right still works fine. How could this have broken, and how can I fix this?
I have closed and re-opened VS, but that did not fix the issue.
Right before this started happening, I was remapping some of the keyboard shortcuts under Options -> Keyboard. I deleted a bunch of unused shortcuts, added some new ones, and changed some. Is it possible that there was a shortcut just for moving the cursor around that I inadvertently deleted? I looked, but I don't see any shortcuts that might fit that description.
Normally, Edit.LineDown command should have Down Arrow assigned to it in the Text Editor scope:
You may need to reassign the shortcut if it is broken.

Is there any way to scroll beyond the last line in xcode?

I ask if there is any way to scroll beyond the last line in xcode, because I always end up pressing a lot of enters to the end of my files, so that I don't have to always type my code at the bottom of my window.
I have skimmed through the properties panel of XCode, and had a look at this forum. So far the answer looks negative, but I kept my hopes up. :)
Any ideas for tricking XCode to scroll beyond the last line? (I have XCode 4.5.2)
There is now a plugin for that !
Have a look at SCXcodeEditorInset !
Dont think there is a way to do this but if you are trying to edit the buttom of the code while having it near the top of your display, you can click the middle view button in xcode to bring up the console/watcher and then drag that up to the desirable spot. This does decrease the overall space of your editor but can sometimes be useful if you prefer this or just need to do that temporarily
What I do is, When you finished typing at the bottom, before you go to top, type some unnecessary code "asdf" as error then go where you want. you can come back clicking on top right red error panel.

Is there a hot key available or configurable in Xcode for the "back button"?

The backbutton in Xcode is super useful for me, especially when I CMD+CLICK to see a declaration, but I always have to use the mouse to click the arrow back button. Is this configurable to hot key?
Thanks!!!
^⌘← unless I redefined that :P
Press "⌘," and go to Key Bindings to see the whole list. You can type "back" in the search box.
I have a Logitech mouse with physical back/forward buttons. By default these buttons map to ⌘[ and ⌘]. Unfortunately these keystrokes default in Xcode to Shift Left (outdent) and Shift Right (indent), which are not what I expect when using my mouse.
So I just remapped ⌘[ to Go Back and ⌘] to Go Forward, though I also had to remove a few conflicting key bindings in order to do it.
Works great now, and I don't have to install any horrible Logitech software (stick to hardware, Logitech!). ;)

Textmate: cannot find page up for macbook keyboard

Using a macbook keyboard (which means I do not have the 'page up' button) I cannot figure out what the pageUp keybinding is or how to bind ctrl+u to the pageUp action.
My first attempt was to add this to my KeyBindings.dict file:
{
"^u" = "pageUp:";
}
That didn't work, so I tried to define pageUp: in "settings -> keyboard -> keyboard shortcuts -> application shortcuts" and then created one for textmate using 'pageUp' and 'pageUp:' as the 'Menu Title' option (there is no menu option for textmate that I can see so I was kind of guessing here).
Basically, what is the opposite of ctrl+v? Or if it does not exist for this keyboard, how can I bind ctrl+u to page up?
You may have changed something with that keybindings file. fn-up arrow should page up and fn-down arrow should page down. The cursor doesn't move with these however, just the screen. I just accidentally found that Ctrl-Up and Ctrl-Down work the same way in TextMate. Playing around a bit, I also found that fn-Opt-Up and fn-Opt-Down will page up and page down while also moving the cursor.
I don't see right away the binding for it, but I do know that on MacBook's, fn + up / down arrow keys gives you page up / page down functionality.

Xcode History (back/forward) Keyboard Shortcut?

Back Arrow Broken In Xcode?
Is there keyboard command to go back/forward one file at a time.
Xcode 3.2 changed the behavior of Cmd-Opt <-- and -->. As noted in another question, they do not operate on a file level like in previous versions of Xcode, but on an "edit point", making it cumbersome to flip through a list of files (the quick way to do it, since Xcode does not support Tabs, as in Eclipse).
Rob Keniger found a partial solution that he noted in another post:
"Hold down the option key while you click the forward/backward arrows ..."
But this requires fiddling with the mouse. Is there any way to do it with the keyboard only?
EDIT:
Later versions of Xcode (v7.2+) now have a Navigate menu (and it changes the keyboard shortcuts yet again):
In XCode 4.4 the following sequence works:
Cmd + Ctrl + ←
and it operates on a file level.
On Xcode 8 I use 2 fingers left / right
Beginning in XCode 3.2.3, the following key sequence works:
Cmd + Option + Shift + ←
Without the Shift key, it just goes back to the previous cursor position. Adding Shift jumps to the previous file (next file, in combination with →).
Navigation shortcuts for Xcode

Resources