Re: Keyboard shortcut to jump to first non-blank character in line?
Re: Keyboard shortcut to jump to first non-blank character in line?
- Subject: Re: Keyboard shortcut to jump to first non-blank character in line?
- From: Andy Lee <email@hidden>
- Date: Fri, 21 Aug 2009 15:02:07 -0400
Well, there you go! My only complaint is that Tab causes the file to be marked as unsaved, but usually I'm about to edit the file anyway. Now if only I could remember why I turned auto-indent off, because I do remember making an explicit choice)... I think it was because I didn't like how certain things were indented, like the second line of a message send that has been split across two lines.
On the other hand I think it was bbum a while back who said he just goes with whatever happens if he selects the whole file and hits Reformat -- personal taste in this or that formatting detail is not worth losing time over.
I'm just surprised there isn't a standard emacs way to do it. I asked a friend who's used emacs since forever, and his first thought was to write a Lisp macro.
--Andy
On Friday, August 21, 2009, at 02:26PM, "A.M." <email@hidden> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>
>On Aug 21, 2009, at 12:57 PM, Andy Lee wrote:
>
>> Is there a keyboard shortcut to position the text cursor just after
>> all leading whitespace in the current line? For example, I
>> sometimes want to do this to insert a new opening square bracket
>> when I realize I need to nest a message. In my source code at work,
>> I've been using Control-A followed by zero or more Control-F's to
>> skip over the leading tabs. But in my home code, I use leading
>> spaces, and this gets tedious.
>>
>> I haven't found anything in the Xcode preferences for key bindings.
>> I'm guessing there's already a key sequence in emacs. I just wonder
>> (a) what it is, and (b) whether it's built into Cocoa text views.
>
>I use autoindentation, so Ctrl-A+Tab works every time.
>
>Cheers,
>M
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v2.0.10 (Darwin)
>
>iEYEARECAAYFAkqO5rsACgkQqVAj6JpR7t6KSwCcCVlfwsgnBxd6SHcRwNP+YMQq
>huIAn0wemPjZvryNeMkOrwHYrlekTeta
>=hM3C
>-----END PGP SIGNATURE-----
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Xcode-users mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden