From 83f30e14807b50c47c5892ec7017051d3509018d Mon Sep 17 00:00:00 2001 From: Alexander Lanin Date: Fri, 13 Dec 2024 11:52:30 +0100 Subject: [PATCH] IDE: Improve line length settings Currently "mandatory wrapping" is configured in the project settings, which is not what everyone wants. Example: It took me a surprisingly long amount of time to understand a line of code, because it looked like two lines. I've not used wrapping in the last 10 years... or ever. At the same time let's add a python ruler for 80 characters, since it's the de-facto-standard. Not only de-factory, it is the standard. See PEP-8. Signed-off-by: Alexander Lanin Issue-Ref: see #76 --- .vscode/settings.json | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 92c92ec..73210f2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,13 +4,20 @@ "files.trimTrailingWhitespace": true, "editor.insertSpaces": true, "editor.tabCompletion": "on", - "editor.wordWrap": "wordWrapColumn", - "editor.wrappingIndent": "same", - "editor.wordWrapColumn": 100, + + // Default for any filetype "editor.rulers": [ 100 ], + // Python Settings + "[python]": { + // In python using 80 characters per line is the standard. + "editor.rulers": [ + 79 + ], + }, + // RST Settings "[restructuredtext]": { "editor.tabSize": 3,