-
Notifications
You must be signed in to change notification settings - Fork 31k
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
autoClosingPairs are too aggressive #51047
Comments
(Experimental duplicate detection) |
Each language can configure its |
I've filed issues for the individual languages. I've also realised that in certain contexts (such as flow control structures or string literals) you get a pop-up suggestion but it doesn't get expanded automatically (sorry for not being precise about that). |
That should already be the case for strings, not for comments apparently (maybe we should add that one) @aeschli If I type
Sorry, configure what? |
Good idea, that would help!
Currently, only extensions can define the language configuratuon.
That's also very interesting for the other language configurations such as folding: #36002 |
Oh got it. Yes that would be cool. |
I realized that if I set /** to not autoclose in "comment", then it never autocloses at all. I guess because once you type Is it possible to support that? Should I file another feature request for it? It was requested to use |
… or Enter. That's how it works in JetBrains IDEs, Eclipse, NetBeans IDE and Komodo IDE (though the triggered feature in those tools is actually a full docblock creation, together with params and return). |
As workaround, I've created a custom code snippet:
I only need to be careful and type / + Enter (or / and Tab) but once you get used to it it's actually a time saver. |
A better workaround (though it implies fiddling with application files and needs to be reapplied on each upgrade) can be found at Proposal: Ability not to auto-close comments. |
Let's track in #38352 |
Issue Type: Feature Request
No matter the context, as soon as you type
/**
you immediately get/**𝖨 */
(where𝖨
is the cursor). If you didn't intend to start a docblock you need to remove the straneous*/
. Tested in JavaScript and PHP, with and without extensions.I'd appreciate these two enhancements:
/**<space>
or/**<enter>
.VS Code version: Code 1.23.1 (d0182c3, 2018-05-10T17:11:17.614Z)
OS version: Windows_NT x64 10.0.17134
The text was updated successfully, but these errors were encountered: