Feature Request: type bracket to surround selected text
-
Feature Request: type bracket to surround selected text.
example:
1.select text: abc
2. type (
3. result: "(abc) -
What you’re talking about is encapsulating. Honestly I would find this useful occasionally as a time saver, but I could more so see this as a plugin.
It would be even more useful to me with the option add line breaks and adjust indentation at the same time.
[
“string”,
“string2”
]
becomes
[
[
“string”,
“string2”
]
]all with a hotkey press. Yes please. But I think that’s too specialized to be in the main program. Like I say, this could be a plugin.
Okay so the website eats my whitespace. That’s more than a little ironic, isn’t it?
-
@Andrew-Dunn said:
the website eats my whitespace
If you’re going to do something that looks like a code-block, I believe you need to indent with four or more spaces leading off each line. When I do it, I use Notepad++ to prepare it (indented!) and then paste it here. :-)
-
This feature is a built-in feature of the sublime & vscode