How can I convert tabs to spaces in every file of a directory?

后端 未结 19 1280
既然无缘
既然无缘 2020-12-02 03:48

How can I convert tabs to spaces in every file of a directory (possibly recursively)?

Also, is there a way of setting the number of spaces per tab?

19条回答
  •  北海茫月
    2020-12-02 04:10

    I used astyle to re-indent all my C/C++ code after finding mixed tabs and spaces. It also has options to force a particular brace style if you'd like.

提交回复
热议问题