Converting CamelCase into snake_case and vice versa

Hello,

I'm just wondering if there is some handy shortcut/functionality to convert a marked area between CamelCase and snake_case and vice versa.

It often happens for me that I have to do this in my project manually which is just tedious.

Thanks and best regards,
Andreas

3 comments
Comment actions Permalink

I've created an issue - http://www.jetbrains.net/jira/browse/RUBY-4545.

By the way you can try to implement this feature(it isn't hard) manually using our ruby API (http://www.jetbrains.net/devnet/thread/282641?tstart=0). You can take scripts/symbol_to_string.rb, scripts/surround_selection.rb as examples.

0
Comment actions Permalink

Andreas,

Have you tried to write extension?

0
Comment actions Permalink

Hello guys,

Just to clarify the request: Do you want just to trigger selected word at carret or have automatically rename refactoring to camelcase or snake_case?
For example you have your caret at method name, run action and RM changes it's name and all it's usages to desired name.

Regards,
Oleg

0

Please sign in to leave a comment.