question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: use { auto add closing bracket

See original GitHub issue
use std::collections::HashMap;
                      ^---- if I add a '{' here it would be great if
                            you added a closing '}' before the semicolon. 

I can’t personally think of a situation where I wouldn’t want that.

Quite often we go from one import to two, and at that point we have to introduce the braces. You could even add a ', ’ and put the carrot before the closing brace, but I think that might be a little disconcerting.

Also the corollary,

use std::collections::{HashMap};
                      ^ if this '{' is deleted then it would be great to auto remove the closing brace.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ice1000commented, Sep 22, 2019

So it’s enabled by default now – Ok. 0.0

0reactions
Undincommented, Sep 22, 2019

Surrounding selected text with paired symbol can be enabled/disabled via Preferences | Editor | General | Smart Keys | Surround a selection with a quote or brace option. And since 2019.2 it’s enabled by default

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatically add brackets for interpolated strings. · Issue ...
I imagined this feature would work like auto closing bracket pairs. Adding #{} to the completion items is more in line with Solargraph's ......
Read more >
Automatic addition of Brackets/parenthesis when typing a ...
The built-in tools of Visual Studio does automatically complete the closing parenthesis, closing square braces, and closing brackets. To accept the closing ...
Read more >
Option to disable auto-close parenthesis? - Logseq forum
I want to disable auto-closing parenthesis feature.
Read more >
How to implement auto closing bracket feature | PyQt5 Tutorial
Auto - closing or self- closing, are some of the terms to describe when you insert a character (starting tag) that has a...
Read more >
auto-pairing brackets? - Google Groups
feature request or would like to report a problem, please email ... I find myself constantly deleting the closing bracket etc. when using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found