Last active
November 8, 2017 16:17
-
-
Save pine/95a29ece09c453d45388be0cc223eca7 to your computer and use it in GitHub Desktop.
Revisions
-
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ## editorconfig とは? エディタを問わず使える、テキストエディタの設定ファイルです。<br /> インデント幅や文字コードなどのコードを書く時のスタイルを、プロジェクトごとに容易に統一することができます。 - 公式サイト http://editorconfig.org/ -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ ## editorconfig とは? エディタを問わず使える、テキストエディタの設定ファイルです。<br /> インデント幅や文字コードなどのコードを書く時のスタイルを、レポジトリごとに容易に統一することができます。 - 公式サイト http://editorconfig.org/ -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -107,7 +107,7 @@ macOS のパッケージマネージャーである Homebrew などが使って  ### 使っているエディタのプラグインが無いのですか? プラグインを作るのは、あなたです! ## 終わりに 戦争のない楽しい開発を楽しみましょう! -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,8 +15,7 @@ エディタを問わず使える、テキストエディタの設定ファイルです。<br /> インデント幅や文字コードなどのスタイルを、レポジトリで容易に統一することができます。 - 公式サイト http://editorconfig.org/ ## editorconfig の特徴 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -76,7 +76,7 @@ http://editorconfig.org/ 個人のエディタの設定とは別に、レポジトリごとの設定という概念が生まれることです。 例えば、他の人の作っているレポジトリであっても、<br /> editorconfig さえ置いてあれば、何も考えずに規則に沿ったコーディングできます。 ### どんな項目が設定できますか? プログラマーが~~必要以上に~~気にする、基本的な項目が設定できます。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -52,6 +52,8 @@ indent_size = 2 ## 対応しているエディタの例 多くのテキストエディタ、IDE が editorconfig に対応しています。  ### テキストエディタ - Vim - Emacs @@ -103,7 +105,7 @@ macOS のパッケージマネージャーである Homebrew などが使って ### 他の人のスタイルに合わせてコードを書きたくないのですが? もしかしてあなた、怠惰ですか???  ### 使っているエディタのプラグインが無いのですか? プラグインを作るのは、あなたです。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -103,6 +103,8 @@ macOS のパッケージマネージャーである Homebrew などが使って ### 他の人のスタイルに合わせてコードを書きたくないのですが? もしかしてあなた、怠惰ですか???  ### 使っているエディタのプラグインが無いのですか? プラグインを作るのは、あなたです。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -50,7 +50,7 @@ indent_size = 2 上記は、 `*` ですべてのファイルに共通する設定が書かれ、その下に拡張子別の設定が記述されています。 ## 対応しているエディタの例 多くのテキストエディタ、IDE が editorconfig に対応しています。 ### テキストエディタ - Vim @@ -66,7 +66,7 @@ indent_size = 2 - IntelliJ IDEA - PyCharm その他、多数のテキストエディタが対応しています。<br /> http://editorconfig.org/ ## よくある質問 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -77,7 +77,7 @@ http://editorconfig.org/ editorconfig さえ置いてあれば、何も考えず規則に沿ったコーディングできます。 ### どんな項目が設定できますか? プログラマーが~~必要以上に~~気にする、基本的な項目が設定できます。 - インデント幅 - 2 なのか 4 なのか、その他なのか -
pine revised this gist
Dec 1, 2016 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -73,7 +73,8 @@ http://editorconfig.org/ ### editorconfig を使うメリットは? 個人のエディタの設定とは別に、レポジトリごとの設定という概念が生まれることです。 例えば、他の人の作っているレポジトリであっても、<br /> editorconfig さえ置いてあれば、何も考えず規則に沿ったコーディングできます。 ### どんな項目が設定できますか? プログラマーが~必要以上に~気にする、基本的な項目が設定できます。 @@ -87,16 +88,17 @@ http://editorconfig.org/ - スペースのみの行を許すか - 最終行に改行を入れるか 詳しくは、公式のドキュメントを御覧ください<br /> https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties ### 使ってるプロジェクト無いでしょ? 聞いたこと無いんだけど? それはあなたの妄想です。 editorconfig を使っているプロジェクトの一覧があるので、御覧ください。<br /> https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig 有名どころだと、プログラミング言語の Ruby や、JavaScript のライブラリである jQuery、<br /> macOS のパッケージマネージャーである Homebrew などが使っています。 ### 他の人のスタイルに合わせてコードを書きたくないのですが? もしかしてあなた、怠惰ですか??? -
pine revised this gist
Dec 1, 2016 . 1 changed file with 5 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ - GitHub [@pine](https://github.com/pine) ## editorconfig とは? エディタを問わず使える、テキストエディタの設定ファイルです。<br /> インデント幅や文字コードなどのスタイルを、レポジトリで容易に統一することができます。 - 公式サイト @@ -26,7 +26,7 @@ http://editorconfig.org/ - 多くのエディタが標準、もしくはプラグインで対応している ## editorconfig の例 こんなファイルを、各レポジトリのルートに置きます。<br /> それによって、書く人によらず統一されたスタイルのプログラムが誕生します。 ``` @@ -47,8 +47,7 @@ indent_style = space indent_size = 2 ``` 上記は、 `*` ですべてのファイルに共通する設定が書かれ、その下に拡張子別の設定が記述されています。 ## 対応しているエディタの例 多くのテキストエディタ、IDE が対応しています。 @@ -74,8 +73,7 @@ http://editorconfig.org/ ### editorconfig を使うメリットは? 個人のエディタの設定とは別に、レポジトリごとの設定という概念が生まれることです。 例えば、他の人の作っているレポジトリであっても、editorconfig さえ置いてあれば、何も考えず規則に沿ったコーディングできます。 ### どんな項目が設定できますか? プログラマーが~必要以上に~気にする、基本的な項目が設定できます。 @@ -98,8 +96,7 @@ https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties editorconfig を使っているプロジェクトの一覧があるので、御覧ください。 https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig 有名どころだと、プログラミング言語の Ruby や、JavaScript のライブラリである jQuery、macOS のパッケージマネージャーである Homebrew などが使っています。 ### 他の人のスタイルに合わせてコードを書きたくないのですが? もしかしてあなた、怠惰ですか??? -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # editorconfig のススメ ## はじめに はじめまして。高知工科大学 OB の pine (ぴね) と申します。<br /> いまは東京で働いていますので、東京へ来る際は飲みましょう。 今期は Occultic;Nine とあにトレ推しです。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ # editorconfig のススメ ## はじめに はじめまして。高知工科大学 OB の pine (ぴね) と申します。 いまは東京で働いていますので、東京へ来る際は飲みましょう。 今期は Occultic;Nine とあにトレ推しです。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ **この記事は [高知工科大 Advent Calendar 2016](http://www.adventar.org/calendars/1872) の2日目の記事です。**<br /> 昨年度のカレンダーはこちら: [高知工科大 Advent Calendar 2015](http://www.adventar.org/calendars/965) # editorconfig のススメ ## はじめに はじめまして。高知工科大学 OB の @pine613 と申します。 いまは東京で働いていますので、東京へ来る際は飲みましょう。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ **この記事は [高知工科大 Advent Calendar 2016](http://www.adventar.org/calendars/1872) の2日目の記事です。**<br /> 昨年度のカレンダーはこちら: [高知工科大 Advent Calendar 2015](http://www.adventar.org/calendars/965) ## はじめに -
pine revised this gist
Dec 1, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ **この記事は [高知工科大 Advent Calendar 2016](http://www.adventar.org/calendars/1872) の2日目の記事です。** 昨年度のカレンダーはこちら: [高知工科大 Advent Calendar 2015](http://www.adventar.org/calendars/965) ## はじめに はじめまして。高知工科大学 OB の @pine613 と申します。 -
pine revised this gist
Dec 1, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ **この記事は [高知工科大 Advent Calendar 2016](http://www.adventar.org/calendars/1872) の2日目の記事です。** ## はじめに はじめまして。高知工科大学 OB の @pine613 と申します。 いまは東京で働いていますので、東京へ来る際は飲みましょう。 -
pine created this gist
Dec 1, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,107 @@ ## はじめに はじめまして。高知工科大学 OB の @pine613 と申します。 いまは東京で働いていますので、東京へ来る際は飲みましょう。 今期は Occultic;Nine とあにトレ推しです。 - Twitter [@pine613](https://twitter.com/pine613) - GitHub [@pine](https://github.com/pine) ## editorconfig とは? エディタを問わず使える、テキストエディタの設定ファイルです。 インデント幅や文字コードなどのスタイルを、レポジトリで容易に統一することができます。 - 公式サイト http://editorconfig.org/ ## editorconfig の特徴 - 特定のエディタに依存しない、共通のデータフォーマット - プロジェクトごとに別の設定を適応可能 - そのリポジトリで作業してる時に勝手に適応される - 多くのエディタが標準、もしくはプラグインで対応している ## editorconfig の例 こんなファイルを、各レポジトリのルートに置きます。 それによって、書く人によらず統一されたスタイルのプログラムが誕生します。 ``` root = true [*] charset = utf-8 end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true [*.py] indent_style = space indent_size = 4 [*.md] indent_style = space indent_size = 2 ``` 上記は、 `*` ですべてのファイルに共通する設定が書かれ、 その下に拡張子別の設定が記述されています。 ## 対応しているエディタの例 多くのテキストエディタ、IDE が対応しています。 ### テキストエディタ - Vim - Emacs - Atom - Sublime Text - Visual Studio Code ### IDE - Visual Studio - Xcode - Eclipse - IntelliJ IDEA - PyCharm その他、多数のテキストエディタが対応しています。 http://editorconfig.org/ ## よくある質問 ### editorconfig を使うメリットは? 個人のエディタの設定とは別に、レポジトリごとの設定という概念が生まれることです。 例えば、他の人の作っているレポジトリであっても、 editorconfig さえ置いてあれば、何も考えず規則に沿ったコーディングできます。 ### どんな項目が設定できますか? プログラマーが~必要以上に~気にする、基本的な項目が設定できます。 - インデント幅 - 2 なのか 4 なのか、その他なのか - インデント文字 - スペースなのかタブなのか - 改行コード - 文字コード - スペースのみの行を許すか - 最終行に改行を入れるか 詳しくは、公式のドキュメントを御覧ください https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties ### 使ってるプロジェクト無いでしょ? 聞いたこと無いんだけど? それはあなたの妄想です。 editorconfig を使っているプロジェクトの一覧があるので、御覧ください。 https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig 有名どころだと、プログラミング言語の Ruby や、JavaScript のライブラリである jQuery、 macOS のパッケージマネージャーである Homebrew などが使っています。 ### 他の人のスタイルに合わせてコードを書きたくないのですが? もしかしてあなた、怠惰ですか??? ### 使っているエディタのプラグインが無いのですか? プラグインを作るのは、あなたです。 ## 終わりに 戦争のない楽しい開発を楽しみましょう!