From 034c8c36e777b30701b651eaa4d100835fc4d562 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 4 Jun 2019 18:02:17 -0400 Subject: [PATCH] Explicit C# line formatting Have newlines at the end of each file and use LF over CRLF --- getting_started/scripting/c_sharp/c_sharp_style_guide.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/getting_started/scripting/c_sharp/c_sharp_style_guide.rst b/getting_started/scripting/c_sharp/c_sharp_style_guide.rst index 84117a539..3f2f9c42a 100644 --- a/getting_started/scripting/c_sharp/c_sharp_style_guide.rst +++ b/getting_started/scripting/c_sharp/c_sharp_style_guide.rst @@ -84,6 +84,7 @@ Insert a blank line: * After *using* statement list. * Between method, properties, and inner type declarations. +* At the end of each file. Field and constant declarations can be grouped together according to relevance. In that case, consider inserting a blank line between the groups for easier reading. @@ -130,9 +131,9 @@ Avoid inserting a blank line: } } -Consider breaking a line when it's longer than 100 characters. And it's also a good practice to -insert a line feed (LF) character at the end of a file because some utilities have trouble -recognizing the last line without it (e.g. the *cat* command on Linux). +Consider breaking a line when it's longer than 100 characters. + +Ensure that all lines use the Unix LF format, not CRLF. Using spaces ------------