Bug 30102 - Can we please split up namespaces in xaml formatting
Summary: Can we please split up namespaces in xaml formatting
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor ()
Version: 5.9
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2015-05-14 18:52 UTC by George Cook
Modified: 2015-07-09 05:39 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description George Cook 2015-05-14 18:52:52 UTC
I can get pretty much standard xaml formatting by turning off wrap attributes, turning on aline attributes, and setting max attributes to 1.

e.g. When I format the document I get this:

		<ListView x:Name="MediaItemsListView"
					<cells:ComplexFastCell />

However, it doesn't work for namespaces, they rather annoyingly all end up on one line regardless
e.g. When I format the document I get this:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TwinTechs.Example.FastCellComplexSamplePage"
	xmlns:cells="clr-namespace:TwinTechs.Example.Cells;assembly=FastCellExample" Title="FastCell Complex">
Comment 1 david 2015-06-04 21:51:18 UTC
I always split namespaces to one-per-line since it makes adding a new namespace for custom controls really easy.
Comment 2 George Cook 2015-06-04 21:54:34 UTC
I can almost get it, if I don't have attribute on the first line (which I really miss; but it's the best I got right now).

Comment 3 David Karlaš 2015-07-09 05:39:33 UTC
If I understand everything correctly this was fixed as part of Bug 30105 fix. So it's fixed in version (master).