Skip to content

Commit c9900de

Browse files
Add .editorconfig for generating API files
1 parent 0330b07 commit c9900de

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.editorconfig

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# see http://editorconfig.org/ for docs on this file
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf ; help with sharing files across os's (i.e. network share or through local vm)
7+
#charset temporarily disabled due to bug in VS2017 changing to UTF-8 with BOM (https://favro.com/card/c564ede4ed3337f7b17986b6/Uni-17877)
8+
#charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# trailing whitespace is significant in markdown (bad choice, bad!)
13+
[*.{md,markdown}]
14+
trim_trailing_whitespace = false
15+
16+
# keep these and the VS stuff below in sync with .hgeol's CRLF extensions
17+
[*.{vcproj,bat,cmd,xaml,tt,t4,ttinclude}]
18+
end_of_line = crlf
19+
20+
# this VS-specific stuff is based on experiments to see how VS will modify a file after it has been manually edited.
21+
# the settings are meant to closely match what VS does to minimize unnecessary diffs. this duplicates some settings in *
22+
# but let's be explicit here to be safe (in case someone wants to copy-paste this out to another .editorconfig).
23+
[*.{vcxproj,vcxproj.filters}]
24+
indent_style = space
25+
indent_size = 2
26+
end_of_line = crlf
27+
charset = utf-8-bom
28+
trim_trailing_whitespace = true
29+
insert_final_newline = false
30+
# must be broken out because of 51-char bug (https://github.com/editorconfig/editorconfig-visualstudio/issues/21)
31+
[*.{csproj,pyproj,props,targets}]
32+
indent_style = space
33+
indent_size = 2
34+
end_of_line = crlf
35+
charset = utf-8-bom
36+
trim_trailing_whitespace = true
37+
insert_final_newline = false
38+
[*.{sln,sln.template}]
39+
indent_style = tab
40+
indent_size = 4
41+
end_of_line = crlf
42+
charset = utf-8
43+
trim_trailing_whitespace = true
44+
insert_final_newline = false
45+
46+
[*.asmdef]
47+
scrape_api = true

0 commit comments

Comments
 (0)