开发者

Splitting XAML Empty-Element Tags in Visual Studio

Quick question, and I hope I'm using the right terminology :)

I'm using Visual Studio 10. Is there a keyboard shorcut for splitting an empty element tag?

For example, I want to turn:

<element />

into:

<element></element>

quickly. This is just a minor nuisance, but editing XAML, for a beginner like me, is very time consuming. I spend a lot of time just splitting up tags to add attributes. I w开发者_如何转开发as just hoping there was some sort of shortcut in VS for this.

Thanks! Jerry


Resharper does it, but I don't think VS can do it out of the box...

Anyway, there's a quick way to split a tag: delete the closing sequence ("/>"), and just add an closing angled bracket (">"): VS will automatically create the closing tag

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜