Skip to content

Commit

Permalink
Add a .editorconfig file
Browse files Browse the repository at this point in the history
This file makes it so that the coding style can be codified at least a
little bit. (Visual Studio 2017 will pick up on it immediately, Visual
Studio 2015 will need the EditorConfig extension from the marketplace).

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Nov 16, 2017
1 parent 5003bd9 commit b3f349d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.{cpp,h}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
charset = utf-8
3 changes: 3 additions & 0 deletions example/console-example/WinToast Console Example.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<ItemGroup>
<Image Include="if_terminal_298878.png" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\.editorconfig" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@
<Filter>Resource Files</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<None Include="..\..\.editorconfig" />
</ItemGroup>
</Project>

0 comments on commit b3f349d

Please sign in to comment.