SVN automatic code formatting on check in?

前端 未结 6 1316
感情败类
感情败类 2020-12-16 18:44

Is this possible? If so how do I do this?

The code is in C# and we are using TortoiseSVN.

I simply want to auto format the code on every checking.

Th

6条回答
  •  不思量自难忘°
    2020-12-16 18:59

    It is possible, but also a very, very bad idea.

    No automatic code formatters are perfect, and I can almost guarantee that it will tick people off.

    That said, if you want to do it, look into using pre-commit hooks.

    Is the SVN server running on a Windows or Linux system? And what code-formatter do you want to use?

提交回复
热议问题