Refactoring matching html tags

Hello,

Is there a featue in RubyMIne 2 that allows me to refactor a matching paris html tags?

So if I had the following code:

<div>Hello World! How goes it?</div>

Putting the cursor at the d in the div tag, and typing span, would also change the matching end </div> tag to </span>.

Thanks.

H

5 comments
Comment actions Permalink

Shift + F6 should do it.

0
Comment actions Permalink

Thanks for the reply Nazar. But that doesn't work for me. When I do Shift-F6, I get a check mark in the line number gutter.
Additionally, I'm using a mac book pro.

0
Comment actions Permalink

Sorry Harold. I should  have mentioned that I was on Lenny.

Looks like Mac keymap settings are different.

Try Refactror (main menu) -> Rename (the menu should show the correct shortcut).

Again, HTH.

0
Comment actions Permalink

Works like a charm. Thanks Nazar!

0
Comment actions Permalink

Hi guys,

You can have a look at default keymap reference by Help | Default Keymap Reference menu item.
Please ensure that you have internet browser configured at File | Settings | Web Browsers

Regards,
Oleg

0

Please sign in to leave a comment.