Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/language-extensions/language-configuration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ VS Code offers two commands for comment toggling. **Toggle Line Comment** and **
}
}
```
The `lineComment` property supports two formats for backward compatibility:

- A string value for simple line comment definitions.
- An object value that allows additional configuration options.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- An object value that allows additional configuration options.
- An object value that enables configuring the indentation behavior of comment lines.


```json
{
"comments": {
"lineComment": {
"comment": "//",
"noIndent": true
},
"blockComment": ["/*", "*/"]
}
}
```
The object form allows additional control over line comments.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop both these lines, as they are covered by the text above.

For example, `noIndent` disables automatic indentation when toggling line comments.

## Brackets definition

Expand Down