Skip to content
Merged
Changes from 1 commit
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.
Comment thread
ntrogh marked this conversation as resolved.
Outdated

```json
{
"comments": {
"lineComment": {
"comment": "//",
"noIndent": true
},
"blockComment": ["/*", "*/"]
}
}
```
The object form allows additional control over line comments.
Comment thread
ntrogh marked this conversation as resolved.
Outdated
For example, `noIndent` disables automatic indentation when toggling line comments.

## Brackets definition

Expand Down