Smart selections (between quotes) for notepad++

07
2014-07
  • user3618156
    def "Abc the quick brown fox jumped over def"
      print "Hello World"
    end
    

    Suppose my cursor is somewhere between abc and def, how can i make notepad++ select the whole text between the double quotes?

    I'm thinking there should be an easy shortcut for this.

    There's a plugin out there (https://github.com/magnars/expand-region.el) but it doesnt work with notepad++

  • Answers
  • DakotaD

    This may not be simple enough for you but the Notepad++ Find/Replace (ctrl-f) function with Regular expressions enabled could do what you want.

    If you search for \"[\w ]*\" it will select the string, including the quotes.


  • Related Question

    Notepad++: How to wrap selected text in brackets, parenthesis, quotes?
  • disc0dancer

    I'm used to textmate and I'm looking for an editor on Windows that supports this. Notepad++ seems cool, but I when I have some text selected and type an opening bracket it replaces the text with the bracket instead of wrapping it inside brackets. Can this be enabled somehow ?


  • Related Answers
  • Chris

    You can try this:

    First select the lines that you want surrounded. Then goto:

    TextFX > TextFX Edit > Indent and surround {text line }

    I don't know if there is a short cut assigned by default for this, but I'm sure that you can make a quick macro if you need it.

    Hope this helps some.