2 de mai de 2017

How to set the "New Line" convention in Visual Studio

Each OS has theis own way to deal with New Line character.
Win = CT LF
Mac = CR
Unix = LF

In VS 2015 you go to:

  1. File
  2. Advance save options
  3. Choose the correct option for your OS
In VS 2017 you go to:
  1. File
  2. Save As
  3. Click the down arrow on the Save button and clicking "Save With Encoding...".
  4. Choose the correct option for your OS
You can also add it back to the File menu through Tools->Customize->Commands if you want to.

Nenhum comentário: