Workflow: How to set RM always wrapping with " ", ||, (), [], {}
Hi,
is there a way to set RubyMine to always surroung a selected text in every scope when having a text selected?
" ", ||, (), [], {}
In normal Textmode / HAML it isn't working.
Thnx and regards
Rafael
P.S. In Textmate it is found in Text (Scope) prefrences
{ highlightPairs = (
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '‘', '’' ),
( '|', '|' ),
);
smartTypingPairs = (
( '"', '"' ),
( '(', ')' ),
( '{', '}' ),
( '[', ']' ),
( '“', '”' ),
( '‘', '’' ),
( '|', '|' ),
);
Please sign in to leave a comment.
Hello Rafael,
We already have this functionality implemented. I'm not sure about 1.1.1 version, but the latest RubyMine 2.0 Beta 2 definitely has this feature done.
Select some part of text inside editor, and just press " or ' or open braces to wrap selection.
You even can easily change wrap if you have changed your mind. Select text and try pressing " or ' or open braces one by another.
However, this doesn't work with |.
Regards,
Oleg
Hi Oleg
incredibly your response time :-) Thnx!
Yes. I am using 2.0 Build 1480.
But unfortunatelly in the normal Text scope (Files with .txt e.g.) doesn't work.
Either Haml won't work properly,
either doesn't it wrap in feature (cucumber) scope.
This is very confusing, when coding, when you always have to change wrapping behavior.
Should this be a feature request in the tracker?
regards
Rafael
Hi Rafael,
Yes, you was absolutely right, I checked this functionality inside Ruby code within HAML and this worked fine. But it doesn't work anywhere except Ruby injections.
I've added feature request: http://youtrack.jetbrains.net/issue/RUBY-5223
Regards,
Oleg
you guys are great, really!
thnx