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

2 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 02 Mar 2010 Link to this post

    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







  2. Jordan
    Admin
    Jordan avatar
    123 posts

    Posted 03 Mar 2010 Link to this post

    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.
  3. DevCraft banner
Back to Top