Skip to content

Commit

Permalink
IDE: Improve line length settings
Browse files Browse the repository at this point in the history
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 <[email protected]>
Issue-Ref: see #76
  • Loading branch information
AlexanderLanin committed Dec 17, 2024
1 parent 6349948 commit 83f30e1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 83f30e1

Please sign in to comment.