From bc47ace4713788b8bf55afabb5effabafcb899e7 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 20 Dec 2019 19:04:49 +0100 Subject: [PATCH] Add a line length guideline to the GDScript style guide This closes #2567. --- getting_started/scripting/gdscript/gdscript_styleguide.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/getting_started/scripting/gdscript/gdscript_styleguide.rst b/getting_started/scripting/gdscript/gdscript_styleguide.rst index 4e5654cb6..879e89c11 100644 --- a/getting_started/scripting/gdscript/gdscript_styleguide.rst +++ b/getting_started/scripting/gdscript/gdscript_styleguide.rst @@ -86,6 +86,13 @@ Surround functions and class definitions with two blank lines: Use one blank line inside functions to separate logical sections. +Line length +~~~~~~~~~~~ + +Try to keep lines under 80 characters. This ensures greater readability on small +displays and splitted editors (such as side-by-side diffs). It's OK to go over +by a few characters, but a line should never exceed 100 characters. + One statement per line ~~~~~~~~~~~~~~~~~~~~~~