codemaid
codemaid copied to clipboard
Remove multiple white spaces between xaml attributes
Environment
- Visual Studio version: 2019
- CodeMaid version: 11.2
- Code language: XAML
Description
Is it possible to remove white spaces between attributes in XAML?
Current vs Expected behavior
- In an empty mainwindow.xaml, if a type the following in the <Window> element
- mc:Ignorable="d" Name="Window"
- I would get
- mc:Ignorable="d" Name="Window"
Thanks for the suggestion. CodeMaid invokes Visual Studio's formatting, and within Visual Studio there are some options related to how attributes are spaced out. Take a look at Tools->Options->Text Editor->XAML->Formatting->Spacing

I didn't know this, thanks for pointing me out! In General tab there is also the option to specify the maximum line length. It would be nice if these options will be integrated in codemaid, so they can be shared in CodeMaid.config