Upgrade to Pro — share decks privately, control downloads, hide ads and more …

EditorConfigで導くコードの「美しさ」

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

 EditorConfigで導くコードの「美しさ」

Avatar for ASKUL Engineer

ASKUL Engineer

March 14, 2022
Tweet

More Decks by ASKUL Engineer

Other Decks in Technology

Transcript

  1. 自己紹介 三浦 駿 @MxShun 20年 20年10月~ サイト統合PJに参画 21年 21年11月~ スクラムマスターを担う

    屋外でエンジニアリングするのがマイブーム 4月~ アスクル株式会社 フルスタックエンジニア(になりたい) 6月~ PJの品質向上隊として活動
  2. コードの「美しさ」とは Good source code should be just as “easy on

    the eyes.” • Use consistent layout, with patterns the reader can get used to. • Make similar code look similar. • Group related lines of code into blocks. “The Art of Readable Code” Chapter 4. Aesthetics より引用
  3. EditorConfig Properties • indent_style • indent_size • tab_width • end_of_line

    • charset • trim_trailing_whitespace • insert_final_newline • max_line_length *詳しくは EditorConfig GitHub wiki “EditorConfig Properties” を参照のこと “tab” か “space” “tab” か 任意サイズ 任意サイズ “lf” か “crlf” か “cr” 選択 選択 選択 “off” か 任意サイズ(一部エディタのみ)