Configure Visual Studio to use UNIX line endings

后端 未结 9 1340
借酒劲吻你
借酒劲吻你 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:54

    The LF is clickable and you choose either LF or CRLF.

    0 讨论(0)
  • 2021-01-31 01:55

    VS2017 supports .editorconfig files, which can be checked in along with your project. This is the relevant command for setting Unix line endings:

    end_of_line = lf
    
    0 讨论(0)
  • 2021-01-31 02:00

    So I found this problem and the answers very confusing, especially since I primarily develop in Linux and PhpStorm and simply never have these issues.

    I found that for Visual Studio 2019, only Munther Jaber's solution worked when combined with @jcox's .editorconfig changes for new files.

    However, being unfamiliar with Visual Studio itself, it took me a LONG TIME to find out where the line ending box is...

    SO I made a video of how to configure this. https://youtu.be/YfN3igHXTPo

    Update: I learned how to make animated GIFs via FFMPEG just so I could embed the video here!

    0 讨论(0)
提交回复
热议问题