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

【Android】Code Reformatに関するメモ

Last updated at Posted at 2021-01-18

XML

  • タグの一番初めの行を改行していてもReformatされないようにする:
    Code Style→XML→Other→Keep line breaksにチェックを付ける

  • スラッシュの手前にスペースを入れない:
    Code Style→XML→Other→In empty tagのチェックを外す

スクリーンショット 2021-01-18 15.33.09.png

Kotlin

  • コメントの前の行を勝手に改行させない:
    Code Style→Kotlin→Blank Lines→Before declaration with comment or annoationを0にするスクリーンショット 2021-01-18 15.41.49.png

  • when}後に空行を生成させない
    Code Style→Kotlin→Wrapping and Braces→when statements→New line after multiple entryのチェックを外す

    settings.png

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