I haven’t bothered with EditorConfig because I’ve assumed it’s about sharing configuration across a dev team, and when it comes to coding, I’m an army of one these days. But I’ve been overlooking another key part of the value prop: EditorConfig lets me share config across my text editors. So instead of telling each editor how to handle Python and Makefile indentation, for example, I can just stick this in my ~/.editorconfig: [*.py] indent_style = space indent_size = 4 [Makefile] indent_style = tab I ran into both of these specific problems earlier today. One of my editors was adding spaces instead of tabs to Makefiles, which breaks them; and the other was doing two spaces instead of four in Python files. (There are reasons I’m using two different editors, but I’m feeling too lazy to explain myself here.) Instead of digging into each editor’s filetype-specific settings, which are typically bespoke and fragile in my opinion, this one, simple config file fixed them both. Late to the…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.