Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Globally using UNIX line endings in Visual Studio 2013

I wanted to know if any of you guys knew a tip to globally (or maybe on a project-by-project basis ?) use Unix line breaks in all of my project files.

I'm aware of the "Advanced Save Options..." menu entry but first it's a file-by-file option and second it does not seem to really work (for example if I select Unix endings and change the file the day after, it's gonna insert windows line endings in the middle of the Unix endings...). The advanced save popup mentions a "Current Setting" which is the default choice, so I was wondering if there was an option somewhere this was referring to ?

If the stock VS can't properly do this, are you maybe aware of a plugin that does the job ?

Thanks !

Edit : After trying a global plugin (see Sir.Tiddlesworth's answer), I don't think it's a viable solution. So a project-by-project suggestion would be welcome !

like image 718
Shtong Avatar asked Jul 29 '14 07:07

Shtong


1 Answers

I know this question is a few months old, but I will leave an answer here just in case.

There is a pretty good plugin for Visual Studio 2013 (and below) called Strip'em. It is really easy to use, and it converts the lines endings as you save the file.

http://www.grebulon.com/software/stripem.php

like image 95
K_Finlay Avatar answered Oct 14 '22 21:10

K_Finlay