0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Zed Editor フォーマットさせない設定

Posted at
setting.json
{
    // ... 中略
    "format_on_save": "off",
    "use_on_type_format": false
}

format_on_saveは保存時にフォーマットをかける設定なのでわかりやすいが、use_on_type_format はLSP、つまりプログラミング言語によってフォーマットがかけられるタイミングでかける、という設定なので必要ない場合もある。Dartは結構これでフォーマットがかけられてしまい、Zedで設定したタブの幅やガン無視されてしまう。

// Whether to use additional LSP queries to format (and amend) the code after
// every "trigger" symbol input, defined by LSP server capabilities.
  "use_on_type_format": true
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?