diff --git a/.gitignore b/.gitignore index 4485ecca..18a38611 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/mRemoteV1/.editorconfig b/mRemoteV1/.editorconfig new file mode 100644 index 00000000..6071b846 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/mRemoteV1/mRemoteV1.csproj b/mRemoteV1/mRemoteV1.csproj index 1d837238..1d52374b 100644 --- a/mRemoteV1/mRemoteV1.csproj +++ b/mRemoteV1/mRemoteV1.csproj @@ -1062,6 +1062,7 @@ +