jump out to select/match braces from anywhere between braces |
Veteran
|
BBEdit does this for its balance function, and it's indeed quite useful.
|
||||||||||||
|
Site Admin
|
when selection is not persistent (it's not by default), cursor may be either at the beginning or at the end of selection, nowhere else. How to make whole the function body selected while cursor is somewhere in between?
|
||||||||||||
_________________ The PHP IDE team |
Veteran
|
I'm not quite sure what you mean, but the way it behaves in BBEdit is that the cursor *becomes* the selection. That is, whenever there's a selection, you don't also see a cursor blinking. Once the selection is made, you can press left-arrow to clear the selection and place the cursor where the selection started, or press right-arrow to clear the selection and leave the cursor where the selection ended.
Thus, wherever you happen to be, you can pound command-B, and BBEdit will create and grow a selection in both directions until it hits the first set of matching braces. Hit command-B again, and the selection grows to the second set, and so on. Makes it easy to not only check that braces are properly balanced, but also grab bits of code (e.g., function arguments) to copy-and-paste elsewhere. You can also double-click on any brace to select its entire contents (and optionally, the braces themselves). |
||||||||||||
|
jump out to select/match braces from anywhere between braces |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by