This question is locked. New answers and comments are not allowed.
The Format Code function does not seem to work very well with code regions or using statements. For example, when you format code and organize usings on the following (with sorting options enabled):
the result is this:
while the desired result is this:
Handling of code regions does not appear to be implemented at all, unless I am overlooking something. I divide every class into logical groups using code regions, and it would be great to reorder and sort code elements when formatting, but Format Code appears to ignore the code regions, which obliterates my logical groups.
I have been a strong supporter of Telerik for many years, and I would love to replace ReSharper with Telerik's JustCode, but issues like these will need to be addressed before I am able to do so.
using MyServices.Database.Lookups;
using System;
using System.Data;
using System.Web.UI.WebControls;
namespace MySolutions.Web.UI
{
public class MyRadioButtonList : RadioButtonList
{
#region Initialization
protected override void OnInit( EventArgs e )
the result is this:
using MyServices.Database.Lookups;
using System.Web.UI.WebControls;
using System.Data;
using System;
namespace MySolutions.Web.UI
{
public class MyRadioButtonList : RadioButtonList
{
#region Initialization
protected override void OnInit( EventArgs e )
while the desired result is this:
using System;
using System.Data;
using System.Web.UI.WebControls;
using MyServices.Database.Lookups;
namespace MySolutions.Web.UI
{
public class MyRadioButtonList : RadioButtonList
{
#region Initialization
protected override void OnInit( EventArgs e )
Handling of code regions does not appear to be implemented at all, unless I am overlooking something. I divide every class into logical groups using code regions, and it would be great to reorder and sort code elements when formatting, but Format Code appears to ignore the code regions, which obliterates my logical groups.
I have been a strong supporter of Telerik for many years, and I would love to replace ReSharper with Telerik's JustCode, but issues like these will need to be addressed before I am able to do so.