Skip to content

Commit

Permalink
Use .editorconfig to code style/formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kmscode committed Feb 15, 2019
1 parent 0cd1485 commit 4bc3fe0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Expand Up @@ -283,9 +283,6 @@ Installer Projects/Installer/Fragments/HelpFilesFragment.wxs
InstallerProjects/Installer/Fragments/FilesFragment.wxs
InstallerProjects/Installer/Resources/License.rtf

# user preference: .editorconfig - http://editorconfig.org/
.editorconfig

# gh-pages info
runlocal.bat
/_site
44 changes: 44 additions & 0 deletions mRemoteV1/.editorconfig
@@ -0,0 +1,44 @@
# top-most EditorConfig file
root = true

[*]
end_of_line = crlf
indent_style = space

[*.xml]
indent_size = 4

[*.cs]
indent_size = 4
trim_trailing_whitespace = true
charset = utf-8-bom

# Organize usings
dotnet_sort_system_directives_first = true

# this. preferences
dotnet_style_qualification_for_field = false:none
dotnet_style_qualification_for_property = false:none
dotnet_style_qualification_for_method = false:none
dotnet_style_qualification_for_event = false:none

# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Space preferences
csharp_space_after_cast = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
1 change: 1 addition & 0 deletions mRemoteV1/mRemoteV1.csproj
Expand Up @@ -1062,6 +1062,7 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include=".editorconfig" />
<None Include="app.config" />
<None Include="Firefox\omni.ja" />
<None Include="packages.config" />
Expand Down

0 comments on commit 4bc3fe0

Please sign in to comment.