LoginSignup
29
25

More than 5 years have passed since last update.

Visual Studio Codeのデフォルト改行コードを変える

Posted at

Visual Studio Code 0.10.10のリリースノートを見てると、改行コードを変えられるようになったみたいでした。

A new setting files.eol controls the default new line character when creating new files. It defaults to \r\n on Windows and to \n on Linux and OS X.

設定にこう書いておけば、Windowsでも改行コードがLFになります。

settings.json
{
...
   "files.eol": "\n",
...
}

(gitの設定の方で解決するのがいいのかもしれませんけど。ベストプラクティスがよくわかりません…)

29
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
29
25