Re:Visualizing How Developers Rate Their Own Programming Skills
by wcarron on Monday November 28, 2016 @04:30PM
(#13058599)
Vim has a nice command to fix indentation from the beginning to end of file: "gg==G (include the dblquotes)
Re:Visualizing How Developers Rate Their Own Programming Skills
by throwanem on Monday November 28, 2016 @05:04PM
(#13058818)
Emacs does the same with C-x h TAB, or you can mark a region manually and reindent its contents with TAB.
As with vim, this depends on being in the right major mode for the language you're working with, which should be automatic for most languages (except Perl, which is screwy, because of course it is), and depends also on that major mode knowing how to cope with the code and being configured the way you want, which should be reasonably trivial for most languages (except Perl, which is screwy, because of course it is).
Re:Visualizing How Developers Rate Their Own Programming Skills
by rifung on Monday November 28, 2016 @04:41PM
(#13058685)
(Assuming that vim knows how to indent the language you're editing and in the way that you want)
Re:Visualizing How Developers Rate Their Own Programming Skills
by reitanqild on Monday November 28, 2016 @04:34PM
(#13058637)
Just don't uncritically apply this to all files without thinking twice and also consult with your team. :-/
Or at least included a tool to fix it.