Skip to content

Commit 8696fa8

Browse files
DakotaB75ntrogh
andauthored
docs: document supported lineComment formats in language configuration (#9214)
* docs: document supported lineComment formats in language configuration * Apply review edits --------- Co-authored-by: Nick Trogh <ntrogh@hotmail.com>
1 parent 15bde9a commit 8696fa8

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

api/language-extensions/language-configuration-guide.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@ VS Code offers two commands for comment toggling. **Toggle Line Comment** and **
7575
}
7676
```
7777

78+
The `lineComment` property supports two formats for backwards compatibility:
79+
80+
- A string value for simple line comment definitions.
81+
- An object value that enables configuring the indentation behavior of comment lines.
82+
83+
```json
84+
{
85+
"comments": {
86+
"lineComment": {
87+
"comment": "//",
88+
"noIndent": true
89+
},
90+
"blockComment": ["/*", "*/"]
91+
}
92+
}
93+
```
94+
7895
## Brackets definition
7996

8097
When you move the cursor to a bracket defined here, VS Code will highlight that bracket together with its matching pair.

0 commit comments

Comments
 (0)