开发者

Splitting XAML Empty-Element Tags in Visual Studio

开发者 https://www.devze.com 2023-01-08 19:08 出处:网络
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?

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

精彩评论

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