editorconfig-vscode icon indicating copy to clipboard operation
editorconfig-vscode copied to clipboard

Placing comment not on a new line voids rule apply

Open Challanger524 opened this issue 2 months ago • 0 comments

Comments should go on their own lines.

Give some error or something!? It was hard to debug.

Examples:

[*.md] # rule: MD009: 2+ spaces (or `\`) as for `<br/>`
indent_style = tab
indent_size  = 2
#trim_trailing_whitespace = false # scrap this nonesence, better to use `\`

# rule: MD009: 2+ spaces (or \) as for <br/> after [*.md] will broke rule application without error/warning.

same goes for # comment in other places like:

[*.{xml,y{a,}ml,json,code-workspace}]
indent_style = space #required
indent_size = 2

#required will break .json formatting

Challanger524 avatar Oct 21 '25 14:10 Challanger524