Hacker News new | past | comments | ask | show | jobs | submit login

ST is the only editor with non-insane indentation controls: it's right there at the bottom of the window (want to start using 4-space indent in a JS file in the middle of a project full of C++ code that's tab indented? In a project where some C++ devs wrote 4-space indebted JS, when you normally prefer 2, but what to stay consistent? No problem, it's a click away). IntelliJ enforces per-language indentation (what if you have multiple projects with 2 or 4 space indent? Tough luck) and IIRC Atom requires you to download a barely-maintained plugin just to get something even resembling indentation control (and you have to edit a config file to change it - on the fly this ain't!)



Using a .editorconfig file solves this problem in many text editors. http://editorconfig.org


Brackets has it the same way as ST: bottom-right of the screen you can switch between spaces and tabs as well as the number to insert with each tab press.


> IntelliJ enforces per-language indentation (what if you have multiple projects with 2 or 4 space indent? Tough luck)

Not the case. You can set it to match existing file indents if you wish (with a notification when an indent style is matched). And you can have individual project-scoped or multiple IDE-scoped language code style presets.


Have you used vscode?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: