-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
New command, "Select to Bracket", that will select the text between ... #43371
Comments
I don't know what would be best, to select the brackets or not... This came in as PR #39066 from @afonsobspinto |
Hey. That's a great question. We faced the same one.
I should try to add support for multicursors soon, so let me know if you want me to change the behavior too. |
how about to make an option?
|
We could add an argument to the command implementation. It would be definable in {
"key": "shift+cmd+\\",
"command": "editor.action.selectToBracket",
"args": { "selectBrackets": false }
} Those would be available in the last argument (not used now) for the public abstract run(accessor: ServicesAccessor, editor: ICodeEditor, args: any): void | TPromise<void>; |
Is it possible to select without brackets now? Example - CSS rules sorting:Step 1 - Select all without brackets Above scenario is impossible right now :( Ps. label |
Let's say that there is a command called |
You might be interested in Shrink/Expand Selection |
@alexandrudima @afonsobspinto Do you have the opportunity to support this? I want the behavior of selectToBracket to continue to expand( |
There is now a new argument to the command, which can be used via
|
Does anyone know - is there a shortcut key for editor.action.selectToBracket ? When I search through Keyboard Shortcuts it is not listed. |
From what i know they didn't add this but it's not a problem because you can make your own shortcut:
|
Thanks @kanlukasz ! If anyone reading this wants to know where you place this text -> |
https://code.visualstudio.com/updates/v1_20#_select-text-while-jumping-between-brackets
tells us:
I'm not an expert in English, but I think "between two matching brackets" means, that brackets (parenthesis, etc.) should be excluded from this selection...
.. shouldn't they?
The text was updated successfully, but these errors were encountered: