This is a migrated thread and some comments may be shown as answers.

"Code Format" and "Organize Usings" aren't singing from the same hymn sheet

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 02 Mar 2010, 12:48 PM
The following is a list of usings I found in a code file...
using UEAPL.Web.Support.Extensions; 
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web; 
using Telerik.Web.UI; 
using System.Text; 
using System.IO; 
using UEAPL.Website.SessionClasses.Notifications; 
using NPL = UEAPL.Notification.PresentationLayer.Implementation; 
using NPr = UEAPL.Notification.PresentationLayer.EmailserviceProxy; 
using UPr = UEAPL.Common.PresentationLayer.UserServiceProxy; 
using UPl = UEAPL.Common.PresentationLayer.Implementation.User; 
using UEAPL.Shared.SessionObjects; 
using System.Data; 
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; 
using UEAPL.Common.PresentationLayer.Implementation.Classification; 
using System.Configuration; 

Asking JC to format the code did this ...
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; 
 
using NPL = UEAPL.Notification.PresentationLayer.Implementation; 
using NPr = UEAPL.Notification.PresentationLayer.EmailserviceProxy; 
 
using System.Collections.Generic; 
using System.Configuration; 
using System.Data; 
using System.IO; 
using System.Linq; 
using System.Text; 
using System.Web.UI.WebControls; 
using System.Web.UI; 
using System.Web; 
using System; 
using Telerik.Web.UI; 
using Telerik.Web; 
using UEAPL.Common.PresentationLayer.Implementation.Classification; 
using UEAPL.Shared.SessionObjects; 
using UEAPL.Web.Support.Extensions; 
using UEAPL.Website.SessionClasses.Notifications; 
 
using UPl = UEAPL.Common.PresentationLayer.Implementation.User; 
using UPr = UEAPL.Common.PresentationLayer.UserServiceProxy; 

But Organize Using, however, did this ...
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling; 
using System; 
using System.Collections.Generic; 
using System.Configuration; 
using System.Data; 
using System.Web.UI; 
using Telerik.Web.UI; 
using UEAPL.Common.PresentationLayer.Implementation.Classification; 
using UEAPL.Shared.SessionObjects; 
using UEAPL.Web.Support.Extensions; 
using UEAPL.Website.SessionClasses.Notifications; 
 
using NPL = UEAPL.Notification.PresentationLayer.Implementation; 
using NPr = UEAPL.Notification.PresentationLayer.EmailserviceProxy; 
using UPl = UEAPL.Common.PresentationLayer.Implementation.User; 
using UPr = UEAPL.Common.PresentationLayer.UserServiceProxy; 

--
Stuart







1 Answer, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 03 Mar 2010, 09:46 AM
Hello Stuart,

Thanks for reporting this. I saw that there are some empty lines which shouldn't be there.
I suppose that the problem when you execute "Format Code" is because you use our Order and sorting functionality. It sort usings alphabetically and not take into account the aliases. I have added these problems to our product backlog.

Best wishes,
Jordan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Jordan
Telerik team
Share this question
or