New CodeRush Plugin – SplitTag

This is certainly one of the more simplistic plugin’s I’ve written, and yet it’s also one I use all the time.

Imagine that you have the following fragment of HTML and you’d like to split it in half.

SplitTagBefore

  • Simply place your caret where you’d like to split the tag.
  • Hit your CodeRush \ Refactor key

SplitTagMenu

  • Select ‘Split Tag’ from the menu
  • … and CodeRush will break your single tag into 2 of the same type.

SplitTagAfter

This plugin can be particularly useful when creating <li> tags within various lists.

CR_SplitTag

Availability

This plugin is available from either The Visual Studio Gallery or from GitHub

The source is available on Github

Showcase Your Apps on DevExpress.com

Highlight your business app and share your development experiences with the DevExpress community. To include your app in our upcoming App Showcase, please forward an application screenshot to clientservices@devexpress.com and tell us which DevExpress products you currently use within your organization.
1 comment(s)
Crono
Crono

Wow, pretty cool! :D

Is it smart enough to copy tags attributes as well (except for "id" and "name")? It would be neat for the "class" attribute to be passed along to the newly created tag. :)

14 October 2014

Please login or register to post comments.