• 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: Stripping trailing whitespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping trailing whitespace


  • Subject: Re: Stripping trailing whitespace
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 05 Jul 2011 14:25:23 -0500

On 5 Jul 2011, at 11:58 AM, Jens Alfke wrote:

> In Xcode 3 I used the Google Toolkit For Mac [GTM] Xcode plugin, one of whose features was to automatically strip whitespace before saving a file. In Xcode 4 I thought I remembered hearing that the editor would have a pref to do this, but I can’t find one. And the script menu doesn’t seem to exist any more, so I can’t write a user script to do it. Anyone got any good tips for this?

It's a cheat, and inefficient, but you could add a Run Script build phase that did it. If you set the "Run script only when installing" flag, it would run only when you archive, which I'd assume is a decent surrogate for "before I check it in."

Or you could put in a run-script-only target, and add it to whatever command you like in the Scheme editor.

	— F

 _______________________________________________
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

References: 
 >Stripping trailing whitespace (From: Jens Alfke <email@hidden>)

  • Prev by Date: Stripping trailing whitespace
  • Next by Date: How to correctly setup Xcode 4 and 3.2.6 to coexist peacefully?
  • Previous by thread: Stripping trailing whitespace
  • Next by thread: Re: Stripping trailing whitespace
  • Index(es):
    • Date
    • Thread