How do get " to replace rather than wrap selected text

Currently several characters (at least " and ' ) wrap the selected text.  I more often than not, am just trying to replace the selected text, is there a way to disable the auto wrap?

Regards, Guy

5 comments
Comment actions Permalink

Hi Guy,

You can change this behavour by turning of some ruby extentions in File | Settings | Extentions.
Turning off surround_selection.rb should make the trick.

Best regards,
Oleg

0
Comment actions Permalink

I've found a bug connected with disabling extentions: http://youtrack.jetbrains.net/issue/RUBY-6108
As a workaround you can remove this script manually from $RUBYMINE-FOLDER$/rb/scripts

Best regards,
Oleg

0
Comment actions Permalink

Thanks Oleg

I didn't know about the scripts, and once you pointed them out to me I just went in and modified it a bit to not wrap one character.  This may not be my final solution, but knowing I can change this is great.

Thanks, Guy

  if selection.size > 2 and delimiters_group[selection[0]] == selection[selection.size-1]
    selection = selection[1..selection.size-2]
  elsif selection.size == 1
    return character.chr
  end

0
Comment actions Permalink

Cool, great to hear

0
Comment actions Permalink

Hell Guy,

I improved your change. Now it isn't wrap only one delimiter character.
E.g.

  |'|foo.. + press " => "foo..
  |a|foo... + press " => "a"foo...

0

Please sign in to leave a comment.