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:08:23 -0400
On Friday, August 21, 2009, at 01:48PM, "Quincey Morris" <email@hidden> wrote:
>On Aug 21, 2009, at 10:46, Quincey Morris wrote:
>
>> I think there are 2 ways:
>>
>> 1. Assuming that your Tab key is bound to the "Indent Friendly
>> Insert Tab" function, it's a 2-key sequence: press Tab, press
>> Backspace. (Hmm. Maybe one Backspace isn't enough if you're
>> expanding tabs to spaces.)
>>
>> 2. If you bind a key to the "Indent Selection" function, it's a 1-
>> key sequence (I use Command-\). Of course, that will also re-indent
>> the current line if it's misaligned, which may or may not be
>> desirable.
Nice! Sure, I could make it a macro. Again, it does mark the file dirty, and like AgentM's solution it assumes the leading whitespace is an exact multiple of tabs, but this is probably as close as one can get. (Cecelia's solution was closer, but it only works in TextWrangler.)
I'll go ahead and file a Radar for exactly what I want.
--Andy
>
>Sheesh, gotta read. The above works if you're anywhere in the
>whitespace at the start of the line. To have this work from anywhere
>in the line, you'd need to start with a Command-left arrow.
>
>But I guess you could make a macro to get it down to one keystroke?
>
>
> _______________________________________________
>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