Re: Tabs/spaces preferences
Re: Tabs/spaces preferences
- Subject: Re: Tabs/spaces preferences
- From: Jonny Taylor <email@hidden>
- Date: Thu, 21 May 2009 12:39:43 +0100
Scott Tooker wrote:
Having started doing some work in Python, in which whitespace is a
language feature (for better or for worse...), I'm running into
problems with Xcode's treatment of tabs and spaces. As far as I can
see, there's only a global setting in the Xcode preferences to
replace tabs with four spaces. What I would like to do is to have
that behavior for *.py files but retain the existing behaviour of
tabs-are-tabs for my C code. Is there any way of doing that, or am I
going to have to accept that tabs are always replaced with spaces in
any file I write (or use a different editor for Python)?
In addition to the per-application preferences, you can also set a
preferences for tabs vs. spaces at the file reference level (via the
inspector) or on a group (also via the inspector).
Thanks very much for your reply, Scott. That has worked very nicely
for me and reduced my stress level a little!
Two points for anybody else doing this:
1. The "inspector" is the window brought up using the "Get Info"
command (this is probably obvious, but I didn't know it was known as
the inspector)
2. I think the editor got a bit mixed up when I fiddled around with
these options - probably best to close the project and reopen to be
safe, before relying on the changed preferences and hierarchy
Cheers
Jonny
_______________________________________________
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