55 ms·
I've tried it a few times, but it's just so painful when you want things to align. Now, if you had a really good code layout tool that could 'snap' parts of lin
by joosters 11y ago
I've tried it a few times, but it's just so painful when you want things to align. Now, if you had a really good code layout tool that could 'snap' parts of lines so that they horizontally align at sensible places, I think non-monospace fonts could be useful.
In fact, having smart alignment would be great even with monospace fonts. I work in emacs and it's frustrating when the editor decides to 'fix' your own spacing because the editor-mode doesn't have a very intelligent layout system...
- lazyjones 11y ago> having smart alignment would be great even with monospace fonts. The "smart" magic you are looking for is called "tabs".
- jff 11y agoAnd they will fight you every step of the way, every time you suggest they use the indentation character for indentation.
- bmn_ 11y agohttp://nickgravgaard.com/elastic-tabstops/ http://nickgravgaard.com/elastic-tabstops/
- jjuhl 11y agoI recommend clang-format : http://clang.llvm.org/docs/ClangFormat.html http://clang.llvm.org/docs/ClangFormat.html
- jff 11y agoYour indentation levels will show up correctly, and that's really all that matters. Relax. Or, if you really care, switch to Go and use gofmt.