From d23ca0ba7a3aa72acefb61dd7a004e3d26aa60d6 Mon Sep 17 00:00:00 2001 From: Temtaime Date: Tue, 27 Oct 2020 17:50:50 +0300 Subject: [PATCH] Add .editorconfig (#768) * Add .editorconfig * Create .editorconfig --- src/.editorconfig | 10 ++++++++++ src/ActionsRunner.sln | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/.editorconfig diff --git a/src/.editorconfig b/src/.editorconfig new file mode 100644 index 00000000000..f5a86e66b95 --- /dev/null +++ b/src/.editorconfig @@ -0,0 +1,10 @@ +[*.cs] +charset = utf-8 +insert_final_newline = true + +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_open_brace = all + +csharp_space_after_keywords_in_control_flow_statements = true diff --git a/src/ActionsRunner.sln b/src/ActionsRunner.sln index 0153bdff243..fa0bfe0ed47 100644 --- a/src/ActionsRunner.sln +++ b/src/ActionsRunner.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29411.138 @@ -21,6 +21,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sdk", "Sdk\Sdk.csproj", "{D EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "Test\Test.csproj", "{C932061F-F6A1-4F1E-B854-A6C6B30DC3EF}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{EFB254FC-7927-445E-BA64-6676ADB309E9}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU