Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Textmate I can "Select Enclosing Brackets" with Command+Shift+B:

Image

How can I set up a similar keyboard shortcut to select everything between the single / double quotes which encompass the cursor?

Desired Result:

Picture 1.png

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

In TextMate 2 you can use Ctrl+Option+B (Select Current Scope) to do this. Note this will include the quotes in the selection, which is slightly different from what you have pictured, but if what you want is to replace the contents you can just hit delete, one quote and then type.

Once you have the selection you can also use Ctrl-Shift-' to toggle the types of quotes surrounding the string, very handy.

I'm not sure if these are present in TextMate 1 as well.

share|improve this answer
    
thank you! although I loved textmate the stagnation in development caused me to move to Sublime Text :) –  cwd Nov 8 '13 at 15:37
    
Understood - I was there with you but TextMate 2 is now being updated very regularly. May be worth another look. –  Matt Sanders Nov 12 '13 at 19:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.