15
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

絶対Visual Studio Codeでフォーマッターを一時無効にするマン

Last updated at Posted at 2021-06-21

ほかの人と共有しているファイルをVSCodeで少し編集したらファイルフォーマッターが作動してほとんどすべて書き換えられて頭を抱えたとき用の備忘録です。

  • EditorConfig for VS Codeを現在のワークスペースで無効にする。
  • 現在のワークスペース用の設定を、設定ファイルに直に書き込む。
 .vscode/settings.json
{
    "editor.formatOnPaste": false,
    "editor.formatOnSave": false,
    "editor.formatOnType": false,
    "files.trimTrailingWhitespace": false
}
15
7
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
15
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?