Re: auto indentation
| From: | Paul M Foster | Date: | Wed, 28 Apr 2010 13:30:06 +0000 |
| Subject: | Re: auto indentation | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304724@lists.php.net to get a copy of this message | ||
On Wed, Apr 28, 2010 at 09:52:16AM +0100, Ashley Sheridan wrote:
<snip>
>
> I set it to use tabs of 4 spaces wide and use c-style indenting. It
> doesn't automatically indent as I write, but I find it a good thing that
> an editor doesn't change anything I write, as that is where problems can
> occur!
<snip>
I've had this behavior with most every editor I've had. I lived with it.
However, when I went to vim, I found out that it will automatically
indent braces and code properly. I thought, "Gee, that's nice. Save me
some work". But as it turns out, it's saved me a lot of debug time. When
the indenting goes wonky in vim, I know I've failed to close a brace
somewhere, or put too many in. It has about the same benefit to me as
syntax highlighting (which ensures I don't misspell key words).
Paul
--
Paul M. Foster