rACkle
rACkle

Reputation: 773

How to set default line endings in Visual Studio Code?

I have an autosetting for Windows somewhere (CRLF) which is really annoying, is there a way to change this to Unix?

Upvotes: 51

Views: 62735

Answers (2)

David Bakare
David Bakare

Reputation: 953

  • Open VSCode settings: Cmd / Ctrl + ,
  • Search for eol in settings and click on \n to make LF default.

enter image description here

Upvotes: 87

Uliana Pavelko
Uliana Pavelko

Reputation: 2952

Open VS code window then Ctrl+Shift+P to open settings and search for EOL like @David Bakare suggested above.

Upvotes: 4

Related Questions