Skip to content

Commit d84f507

Browse files
mitchcapperTrolldemorted
authored andcommitted
Updated .editorconfig with more items and vs specific features, added to sln as well
1 parent cdffc47 commit d84f507

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

.editorconfig

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1-
root = true
2-
3-
[*]
1+
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
2+
###############################
3+
# Core EditorConfig Options #
4+
###############################
5+
root = true
6+
# All files
7+
[*]
8+
indent_style = space
49
end_of_line = crlf
5-
indent_size = 4
10+
indent_size = 4
11+
12+
# Code files
13+
[*.{cs,csx,vb,vbx}]
14+
insert_final_newline = true
15+
charset = utf-8
16+
###############################
17+
# .NET Coding Conventions #
18+
###############################
19+
[*.{cs,vb}]
20+
# Organize usings
21+
dotnet_sort_system_directives_first = true
22+
###############################
23+
# C# Formatting Rules #
24+
###############################
25+
# New line preferences
26+
csharp_new_line_before_open_brace = all
27+
csharp_new_line_before_else = true
28+
csharp_new_line_before_catch = true
29+
csharp_new_line_before_finally = true
30+
csharp_new_line_before_members_in_object_initializers = true
31+
csharp_new_line_before_members_in_anonymous_types = true
32+
csharp_new_line_between_query_expression_clauses = true
33+
# Indentation preferences
34+
csharp_indent_case_contents = true
35+
csharp_indent_switch_labels = true
36+
csharp_indent_labels = flush_left
37+
csharp_space_around_binary_operators = ignore

libsignal-service-dotnet.sln

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ VisualStudioVersion = 15.0.26403.3
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "libsignal-service-dotnet", "libsignal-service-dotnet\libsignal-service-dotnet.csproj", "{088F38F5-EFA5-4264-BAC0-E745F9170222}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "libsignal-service-dotnet-tests", "libsignal-service-dotnet-tests\libsignal-service-dotnet-tests.csproj", "{BD335150-6F1F-42A7-9221-5D3FFF75CD99}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "libsignal-service-dotnet-tests", "libsignal-service-dotnet-tests\libsignal-service-dotnet-tests.csproj", "{BD335150-6F1F-42A7-9221-5D3FFF75CD99}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A21D802D-2D46-4DA3-95EF-B7C851A7EA65}"
11+
ProjectSection(SolutionItems) = preProject
12+
.editorconfig = .editorconfig
13+
EndProjectSection
914
EndProject
1015
Global
1116
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)