Skip to content

Commit 5194182

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

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
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-protocol-dotnet.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "libsignal-protocol-dotnet-t
1010
{A2C21AB2-85D2-432F-BE51-C9D1B6CDDEC8} = {A2C21AB2-85D2-432F-BE51-C9D1B6CDDEC8}
1111
EndProjectSection
1212
EndProject
13+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7E21BCAD-AC11-47F0-9582-347E670BA23F}"
14+
ProjectSection(SolutionItems) = preProject
15+
.editorconfig = .editorconfig
16+
EndProjectSection
17+
EndProject
1318
Global
1419
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1520
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)