Skip to content

Option for toggling autoclose of angle brackets #12332

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

Closed
aftix opened this issue May 20, 2022 · 3 comments
Closed

Option for toggling autoclose of angle brackets #12332

aftix opened this issue May 20, 2022 · 3 comments
Labels
C-support Category: support questions S-unactionable Issue requires feedback, design decisions or is blocked on other work

Comments

@aftix
Copy link

aftix commented May 20, 2022

The current editor.autoClosingBrackets effects all brackets like () and {}. I'd like to specifically opt out of closing < since < is used for comparisons and shift operations.

@jonas-schievink
Copy link
Contributor

We don't register <> as an auto-closing bracket pair:

"autoClosingPairs": [
{ "open": "{", "close": "}" },
{ "open": "[", "close": "]" },
{ "open": "(", "close": ")" },
{ "open": "\"", "close": "\"", "notIn": ["string"] },
{ "open": "/*", "close": " */" }
],

This might be an issue with your configuration. Do you have other Rust plugins installed that could interfere?

@aftix
Copy link
Author

aftix commented May 20, 2022

Huh, setting a rust language specific option editor.autoClosingBrackets to languageDefined gives me all of those but doesn't auto close > anymore. In fact, I can't get any setting to recreate the behavior now, despite the fact someone else said they had the same problem.

@lnicola lnicola added S-unactionable Issue requires feedback, design decisions or is blocked on other work C-support Category: support questions labels May 21, 2022
@lnicola
Copy link
Member

lnicola commented May 25, 2022

Closing since you can't reproduce it, but you might want to keep an eye on #12379.

@lnicola lnicola closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-support Category: support questions S-unactionable Issue requires feedback, design decisions or is blocked on other work
Projects
None yet
Development

No branches or pull requests

3 participants