Configure Visual Studio to use UNIX line endings

后端 未结 9 1521
借酒劲吻你
借酒劲吻你 2021-01-31 01:22

We would like to use Visual Studio 2005 to work on a local copy of an SVN repository. This local copy has been checked out by Mac OS X (and updates and commits will only be made

9条回答
  •  我在风中等你
    2021-01-31 01:46

    Warning: This solution no longer works for Visual Studio 2017 and later. Instead, both of the answers by jcox and Munther Jaber are needed. I have combined them into one answer.

    As OP states "File > Advanced Save Options", select Unix Line Endings.

    This will only affect new files that are created. Fixing any that were previously created can be done file-by-file or you can search for tools that will fix on-bulk.

提交回复
热议问题