2
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?

More than 5 years have passed since last update.

IntelliJ IDEA のCSSフォーマット設定について

Last updated at Posted at 2019-09-02

備忘録

intelli Jのフォーマットツールでは、CSSの改行がデフォルトで3行になっている。

これを1行に切り替えたいとき。
スクリーンショット 2019-08-22 17.00.57.png
IntelliJ IDEA→Preferences
スクリーンショット 2019-08-22 17.02.45.png
Editor→CodeStyle→StyleSheet→CSS

設定を下記に変更する。

項目 初期値 設定値
In code 0 1
Around top-level block 0 1
Around nested-selector 0 1

あとは⌘+option+Lで綺麗にフォーマットされる。

2
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
2
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?