Re: Stopping XCode From Inserting Tab Characters
Re: Stopping XCode From Inserting Tab Characters
- Subject: Re: Stopping XCode From Inserting Tab Characters
- From: Andy Lee <email@hidden>
- Date: Wed, 24 Apr 2013 08:10:24 -0400
On Apr 24, 2013, at 7:48 AM, Andy Lee <email@hidden> wrote:
> * Syntax-aware indenting: off
Come to think of it, turning this off does work for me in the sense that nothing I type will cause the level of indenting to be increased. If I hit Return in a block of code that is *already* indented, I do get leading indentation at the same level I was already at. But if you're vision-impaired and your goal is *never* to indent, this should work. Everything should stay at zero indentation.
The exceptions would be if you paste someone else's code which contains indentation, or if you create a new file and Xcode gives you pre-indented boilerplate code. In that case the quickest way to remove the indentation would be to type Command-A and then hit Command-[ enough times to push everything to the left edge. Much simpler than manually deleting tabs. I do this sometimes, followed by a Re-indent, when I have code that I want to convert between indent-with-Spaces and indent-with-Tabs (depending on whatever my current project uses).
You could get a keyboard macro app and map a single keystroke to Command-A plus ten Command-['s, which should be enough for almost all cases.
--Andy
_______________________________________________
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