Coding style e-book
C# Coding Style Guide: http://www.csharpfriends.com/articles/getarticle.aspx?articleid=336
Visual Studio дээр яаж хэлбэржүүлэх комманд тохируулах вэ.
Visual Studio C# Formatting (go to Tools > Options > Text Editor > C#)
Tabs
Tab size: 4
Indent size: 4
Insert spaces
Formatting
Indentation
Indent block contents: ON
Indent open and close braces: OFF
Indent case contents: ON
Indent case labels: OFF
Label indentation: PLAE GOTO LABELS ONE INDENT LESS THAN CURRENT
New lines
New line options for braces (ALL OFF)
New line options for keywords (ALL OFF)
New line options for expressions (ALL OFF)
Spacing
Set spacing for methods declarations (ALL OFF)
Set spacing for method calls (ALL OFF)
Set other spacing options (ALL OFF)
Set spacing for brackets (ALL OFF)
Set spacing for delimiters
Insert space after colon for base or interface in type declaration: ON
Insert space after comma: ON
Insert space after dot: OFF
Insert space after semicolon in "for" statement: ON
Insert space before colon for base or interface in type declaration: ON
Insert space before comma: OFF
Insert space before dot: OFF
Insert space before semicolon in "for" statement: OF
Set spacing for operators: INSERT SPACE BEFORE AND AFTER BINARY OPERATORS
Wrapping
Leave block on single line: ON
Leave statement and member declarations on the same line: OFF
Tab size: 4
Indent size: 4
Insert spaces
Formatting
Indentation
Indent block contents: ON
Indent open and close braces: OFF
Indent case contents: ON
Indent case labels: OFF
Label indentation: PLAE GOTO LABELS ONE INDENT LESS THAN CURRENT
New lines
New line options for braces (ALL OFF)
New line options for keywords (ALL OFF)
New line options for expressions (ALL OFF)
Spacing
Set spacing for methods declarations (ALL OFF)
Set spacing for method calls (ALL OFF)
Set other spacing options (ALL OFF)
Set spacing for brackets (ALL OFF)
Set spacing for delimiters
Insert space after colon for base or interface in type declaration: ON
Insert space after comma: ON
Insert space after dot: OFF
Insert space after semicolon in "for" statement: ON
Insert space before colon for base or interface in type declaration: ON
Insert space before comma: OFF
Insert space before dot: OFF
Insert space before semicolon in "for" statement: OF
Set spacing for operators: INSERT SPACE BEFORE AND AFTER BINARY OPERATORS
Wrapping
Leave block on single line: ON
Leave statement and member declarations on the same line: OFF
10:31 PM
|
Labels:
.NET,
Web Developer
|
This entry was posted on 10:31 PM
and is filed under
.NET
,
Web Developer
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment