-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: editor.autoCloseBlockComment
setting
#154994
Comments
duplicate of #102574 |
Just in case this was duplicated by mistake: The ask here is for an additional setting (more granularity), to allow auto-closing of block comments to be configured separately from auto closing of brackets. That does not appear to be discussed in #102574 . |
I'm not (yet) very familiar with the auto-closing logic. What is the advantage of using |
Hi @hediet . The advantage of adding a new
... without having to alter whether auto-closing of brackets is enabled/disabled (w/
There are already separate settings for enabling/disabling auto-closing of brackets vs. quotes. I'm just requesting that auto-closing of comments should have its own setting, instead of being controlled by the same setting that control auto-closing of brackets. (I pointed out in the original post that there is already sufficient information to separately identify which entries in the We're considering adding auto-closing support for block comments in the C/C++ Extension. That is not currently configured in the built-in |
Ideally the user could individually define auto closing pairs.
|
Any updates? I really need an autoclosing for |
In
language-configuration.json
, block comment start and end positions can be defined. For example, for cpp, or typescript-basics:typescript-basics also has an AutoClosingPair defined for block comments (requiring an additional asterisk, though I'm not aware of the origin of that convention) :
There are currently two settings, which make it possible to disable the auto-closing, for brackets and quotes:
editor.autoClosingBrackets
andeditor.autoClosingQuotes
.It looks like
editor.autoClosingBrackets
also controls whether comments are auto-closed. Since there are fields inlanguage-configuration.json
to identify brackets and blockComments, it seems enabling/disabling of block comments could be done using a separate setting, rather than being lumped in with brackets.There is not currently an
autoClosingPair
incpp
. I'd also like to suggest adding that, provided there is a way to disable it without disabling auto closing of brackets.Alternatively, if there is a recommended way of implementing auto-closing of block comments that could be implemented by an extension, perhaps we could do that in the C/C++ extension and provide our own setting for it.
Ideally, C++ block comment closing would not require the second asterisks (required in typescript* and the closing
*/
could be typed over. (see: #54499 ).#1966 is related.
The text was updated successfully, but these errors were encountered: