Re: Local variables for editors

From: Date: Tue, 22 Jan 2019 15:49:14 +0000
Subject: Re: Local variables for editors
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-103775@lists.php.net to get a copy of this message
On Wed, Nov 29, 2017 at 2:54 PM Peter Kokot <peterkokot@gmail.com> wrote: > > Hello, > > I'm not sure if this has been discussed before, but I find these local > variables in C, H and other files a bit strange and bloated: > > /* > * Local variables: > * tab-width: 4 > * c-basic-offset: 4 > * End: > * vim600: noet sw=4 ts=4 fdm=marker > * vim<600: noet sw=4 ts=4 > */ > > Is there any chance to start omitting them and use a single > .editorconfig file instead or is this something that is a must have in > C projects of today? > > Thank you for some clarification on this :) > -- > Peter Kokot > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php I use vim, and do not enable these per-file settings. I don't think any distributions enable them by default either. My opinion: I think we can get rid of them. I have used .editorconfig and .clang-tidy for other projects and liked it. I tried using it with tabs, and the experience seemed less polished but still worked.

« previous php.internals (#103775) next »