[postgis-devel] Code formatting digging in

Regina Obe lr at pcorp.us
Sat Mar 3 06:39:53 PST 2018


> Sandro, it's not how editorconfig works. What it does is setting editor's tab stops width and type of characters to generate on pressing tab on the start of the line.
> Think of it as of a replacement for vim's ModeLines, that used to be /* vim: set ts=8 sw=4 tw=0 noet : */.

 

> It's going to auto-set the cursor to right spot for the newly written code after typing {<enter>, but not perform a reflow and fix a mismatch in indentation (error in 

 

> level, not type) of old code.

 

Not sure how it works in other editors but I think in VS Code it rewrites the file cause if say there is no new line at the end of the file where we dictate there should, it changes it.

 

It also trims spaces in areas of code I never touched.  I see this on the commit diff.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20180303/f65c9b79/attachment-0001.html>


More information about the postgis-devel mailing list