2 ms·
While I agree useless comments are bad, especially in production, is there any reason why you don't just have a macro in your editor (assuming vim here) to do
by semi-extrinsic 11y ago
While I agree useless comments are bad, especially in production, is there any reason why you don't just have a macro in your editor (assuming vim here) to do
:view
:g/^\s*#/d
(this sets vim into read-only mode and then deletes all comment lines, assuming # for comments).