Permalink
Browse files

Added .editorconfig for sharing formatting

EditorConfig (see http://editorconfig.org/) is a way of sharing
Visual Studio settings for a solution. If you have the plugin installed
then it will enforce the rules in the .editorconfig file. We need this
so that new pull requests will be formatted with spaces instead of
tabs. It doesn't work if the committer does not install the plugin and
isn't meant as a requirement for submitting pull requests. It is more
intended to help those switching between projects with different tab
settings (for example me).

This will also work for Sublime Text, Emacs, Vim and Notepad++.
  • Loading branch information...
daniellee committed Oct 15, 2012
1 parent b0ffdba commit ecd597ea5f787d6a94f36d7ea1de44b5734ab35e
Showing with 11 additions and 0 deletions.
  1. +11 −0 .editorconfig
View
@@ -0,0 +1,11 @@
+; This file is for unifying the coding style for different editors and IDEs.
+; More information at http://EditorConfig.org
+
+root = true
+
+[*]
+end_of_line = CRLF
+
+[*.cs]
+indent_style = space
+indent_size = 4

0 comments on commit ecd597e

Please sign in to comment.