• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keyboard shortcut to jump to first non-blank character in line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Quincey Morris <email@hidden>
  • Date: Fri, 21 Aug 2009 10:46:06 -0700

On Aug 21, 2009, at 09:57, 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 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.


_______________________________________________ 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
  • Follow-Ups:
    • Re: Keyboard shortcut to jump to first non-blank character in line?
      • From: Quincey Morris <email@hidden>
References: 
 >Keyboard shortcut to jump to first non-blank character in line? (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Keyboard shortcut to jump to first non-blank character in line?
  • Next by Date: Re: Keyboard shortcut to jump to first non-blank character in line?
  • Previous by thread: Re: Keyboard shortcut to jump to first non-blank character in line?
  • Next by thread: Re: Keyboard shortcut to jump to first non-blank character in line?
  • Index(es):
    • Date
    • Thread