editor: Add astrick on new line in multiline comment for Go, Rust, C, and C++ (#30808)

Add asterisk on new line in multiline comments for Go, Rust, C, and C++.
While `*` is entirely for style. There's no actual need for it. It can
be disabled from setting. More:
https://doc.rust-lang.org/rust-by-example/hello/comment.html

<img width="491" alt="image"
src="https://github.com/user-attachments/assets/385b1eb5-be81-446c-b7cf-34165d6b384a"
/>

Release Notes:

- Added automatic asterisk insertion for new lines in multiline comments
for Go, Rust, C, and C++. This can be disable by setting
`extend_comment_on_newline` to `false`.
This commit is contained in:
Smit Barmase 2025-05-16 15:30:04 +05:30 committed by GitHub
parent 0f4e52bde8
commit 16f668b8e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View file

@ -12,3 +12,4 @@ brackets = [
{ start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
]
debuggers = ["CodeLLDB", "GDB"]
documentation = { start = "/*", end = "*/", prefix = "* ", tab_size = 1 }

View file

@ -12,3 +12,4 @@ brackets = [
{ start = "/*", end = " */", close = true, newline = false, not_in = ["string", "comment"] },
]
debuggers = ["CodeLLDB", "GDB"]
documentation = { start = "/*", end = "*/", prefix = "* ", tab_size = 1 }

View file

@ -15,3 +15,4 @@ brackets = [
tab_size = 4
hard_tabs = true
debuggers = ["Delve"]
documentation = { start = "/*", end = "*/", prefix = "* ", tab_size = 1 }

View file

@ -16,3 +16,4 @@ brackets = [
]
collapsed_placeholder = " /* ... */ "
debuggers = ["CodeLLDB", "GDB"]
documentation = { start = "/*", end = "*/", prefix = "* ", tab_size = 1 }