The question has been asked (sort of) here Make Visual Studio 2013 use Self-Closing Tags for XAML but not really answered. When I type in say StackPanel, I can't seem to get the UI to complete the closing tag. Is there a command or keyboard sequence to do this? Thanks in advance.
I found the solution myself.
Type in the less-than sign ( < ) and hit enter .
There is also an option in the settings. Just search for tag in the settings and then Texteditor -> textspecific options(button). There you can set your default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.