Skip to content
Permalink
Browse files

Initialized .editorconfig.

  • Loading branch information...
fredck committed Aug 14, 2014
1 parent bab0e30 commit dd7edf242ebba419f2172ce97ab5997bd4da35eb
Showing with 12 additions and 0 deletions.
  1. +12 −0 .editorconfig
@@ -0,0 +1,12 @@
# Configurations to normalize the IDE behavior.
# http://editorconfig.org/

root = true

[*]
indent_style = tab
tab_width = 4
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

1 comment on commit dd7edf2

@tamililakkiya96

This comment has been minimized.

Copy link

commented on dd7edf2 Dec 17, 2018

In Visual Studio 2017, you can define and maintain consistent code style in your codebase with the use of an EditorConfig file. EditorConfig includes several core formatting properties, such as indent_style and indent_size. In Visual Studio, .NET coding conventions settings can also be configured using an EditorConfig file. EditorConfig files allow you to enable or disable individual .NET coding conventions, and to configure the degree to which you want the convention enforced via a severity level. To learn more about how to use EditorConfig to enforce consistency in your codebase, read Create portable custom editor options.

See the end of this article for an example .editorconfig file.

Convention categories
There are three supported .NET coding convention categories:

Language code styles

Rules pertaining to the C# or Visual Basic language. For example, you can specify rules around using var or explicit types when defining variables, or preferring expression-bodied members.

Formatting conventions

Rules regarding the layout and structure of your code in order to make it easier to read. For example, you can specify rules around Allman braces, or preferring spaces in control blocks.

Naming conventions

Rules regarding the naming of code elements. For example, you can specify that async methods must end in "Async".

iot courses in Bangalore

internet of things training course in Bangalore

internet of things course in Bangalore

Please sign in to comment.
You can’t perform that action at this time.