I've just started messing around with WPF, and something I've noticed is that when writing in Visual Studio's XAML editor, tags that I'd like to be formatted as self-closing tags (for example <Setter />
) always get auto-completed to have a separate closing tag, like <Setter></Setter>
. Is there a way to change this behavior, or am I stuck reformatting those tags by hand?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- Custom controls disabled. There was an internal is
相关文章
- WPF MVVMLight:在ViewModel中,开子线程为ObservableCollectio
- 关于ItemsControl的绑定问题
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Web Test recorder does not allow me to record a te
- XAML ComboBox SelectionChanged Fires OnLoad
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
I do not see one in the Visual Studio options but there is one in the Resharper options.
Resharper menu -> Code Editing -> XAML -> Editor -> Check "Always create self-closed tags in code completion"