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.

Changing brackets pair in code (feature request)

See original GitHub issue

Assume, I have a list in Python. For example:

[1, 2, 3]

But, I want to change this list to a tuple by changing the square brackets to round brackets:

(1, 2, 3)

It takes some time to change the square brackets to round brackets

So, VS Code should include a refactoring option for lists and tuples in Python when we are on a list or a tuple to change the type of bracket pair.

Thank you very much

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
byehackcommented, Apr 7, 2022

Also for unselected text, there could be a command: Delete Bracket Pairs And select Between

image

after executed the command: image

Or may be this command is enough and we don’t need any other command. is it also fixes https://github.com/microsoft/vscode/issues/133663 ?

1reaction
hedietcommented, Apr 8, 2022

I like this! Could be bound to Ctrl+Delete. Then you could easily delete both the bracket pair and the content within.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bracket pair colorization 10000x faster - Visual Studio Code
In particular, bracket pair colors should not be requested asynchronously as ... The feature can be enabled by adding the setting "editor.
Read more >
Replace matching brackets for parenthesis vscode
Is there a way to quickly replace matching brackets for matching parenthesis (or any other opening/closing characters) in vscode?
Read more >
Adding color to bracket pairs - Visual Studio Blog
Granted, they all colorize bracket pairs, but the way they do it differs and a lot of them provide additional features and options....
Read more >
Rainbow Brackets - IntelliJ IDEs Plugin - JetBrains Marketplace
Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio. The free features are sponsored by CodeStream. Eliminate context switching and ...
Read more >
Visual Studio plays catchup with VS Code again - DevClass
Bracket Pair Colorization, the same feature, was built into Visual ... to have this feature available in Visual Studio,” said the request.
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