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
请先登录再写评论。
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
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
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
Cool, great to hear
Hell Guy,
I improved your change. Now it isn't wrap only one delimiter character.
E.g.