Teach formatter to optionally add two spaces before end-of-line comments. (#855)

* Teach formatter to add two spaces before end-of-line comments.
This commit is contained in:
Tom Moertel
2025-05-11 16:19:19 -04:00
committed by GitHub
parent 4d00f9f41a
commit af6df23306
4 changed files with 65 additions and 2 deletions

View File

@@ -307,6 +307,19 @@
"default": false,
"description": "Whether extra space should be removed from function parameter lists"
},
"godotTools.formatter.spacesBeforeEndOfLineComment": {
"type": "string",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"1 space before EOL comments # Like this.",
"2 spaces before EOL comments  # Like this."
],
"default": "1",
"description": "Number of spaces before an end-of-line comment"
},
"godotTools.lsp.serverHost": {
"type": "string",
"default": "127.0.0.1",