All those mysterious extra tabs
Posted: Sun Jul 27, 2014 11:32 pm
So, I'm working on a patch, and it involves digging out code I wrote ages ago but never completed, copying it into a current techs.txt which regularly involves copying lines of code, adding extra lines, etc.
And I noticed, whenever I hit return at the end of an indented line, Notepad++ handily indents the next line to keep the code coherent. What I'd never noticed until now was it does it using tabs, not the 4 spaces preferred for FO.
All those many many times Geoff has asked me to redo a patch and remove the tabs, and I've been confused where they came from, it was N++ being helpful. And now I've noticed it, there's a handy setting in options to check a box to keep it being helpful but to replace tabs with 4 spaces.
This is good. Hopefully, Geoff won't need to get me to delete lots of extraneous tabs from now on. I'll undoubtedly start getting something else wrong, but, y'know, progress.
And I noticed, whenever I hit return at the end of an indented line, Notepad++ handily indents the next line to keep the code coherent. What I'd never noticed until now was it does it using tabs, not the 4 spaces preferred for FO.
All those many many times Geoff has asked me to redo a patch and remove the tabs, and I've been confused where they came from, it was N++ being helpful. And now I've noticed it, there's a handy setting in options to check a box to keep it being helpful but to replace tabs with 4 spaces.
This is good. Hopefully, Geoff won't need to get me to delete lots of extraneous tabs from now on. I'll undoubtedly start getting something else wrong, but, y'know, progress.