New Lines before/after region

6 posts, 0 answers
  1. Christian Pardun
    Christian Pardun avatar
    112 posts
    Member since:
    May 2010

    Posted 12 Sep 2011 Link to this post

    Hi Telerik-Team,

    it would be realy nice, if you implemeted an new formatter option to set the before/after new line for #region / #endregion. Currently all lines will be removed sometimes. For example the new lines after a #region and before an constructor.

    Kind regards,
    Christian

    Before JustCode;

    namespace Test
    {
        public class Class1
        {
            #region CTors
     
            /// <summary>
            /// Initializes a new instance of the <see cref="Class1"/> class.
            /// </summary>
            public Class1()
            {
     
            }
     
            #endregion CTors
     
            #region Properties
     
            /// <summary>
            /// Gets or sets my property.
            /// </summary>
            /// <value>
            /// My property.
            /// </value>
            public int MyProperty { get; set; }
     
            #endregion Properties
        }
    }

    After JustCode;
    namespace Test
    {
        public class Class1
        {
            #region CTors
            /// <summary>
            /// Initializes a new instance of the <see cref="Class1"/> class.
            /// </summary>
            public Class1()
            {
            }
     
            #endregion CTors
     
            #region Properties
     
            /// <summary>
            /// Gets or sets my property.
            /// </summary>
            /// <value>
            /// My property.
            /// </value>
            public int MyProperty { get; set; }
            #endregion Properties
        }
    }
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 15 Sep 2011 Link to this post

    Hello Uwe Krall,

     Thanks for the suggestion. We have that already in our backlog, so I'll raise its priority after your call. You can monitor the progress on the task here.

    Greetings,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Pedro Lamas
    Pedro Lamas avatar
    2 posts
    Member since:
    May 2010

    Posted 11 Oct 2011 Link to this post

    Greetings Kaloyan,

    I too am experiencing the problem reported by Uwe in this topic! As far as I could tell, this is related to the "As open brace should not be followed by a blank line" and "A closing brace should not be preceded by a blank line" in "Code Style -> C# -> Blank Lines" - if I disable this option, the region element stays as I wrote it (the content with a blank line separating it)

    Any news on this issue? I couln't find the open issue in the tracker...

    Best regards,

    Pedro Lamas
  5. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 13 Oct 2011 Link to this post

    Hello Pedro,

     The blank lines options are not related the request Uwe sent. They take care of the braces only, and not of the region directive.
    Follow this link for the PITS item. I'll raise its priority after your call. Thanks.

    Kind regards,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Iwhp
    Iwhp avatar
    40 posts
    Member since:
    Dec 2009

    Posted 16 Mar 2012 Link to this post

    This is not yet resolved! Any dates when this will be fixed?
    Thankx, Cheers Harry
  7. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 21 Mar 2012 Link to this post

    Hi guys,

     Indeed, this feature has not been implemented yet. I've promoted the corresponding PITS item from private to public so that we can gather more user feedback on the usability of such formatter functionality. Please, find it here and vote for it so that we can raise its priority, based on your interest.

    Kind regards,
    Kaloyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
DevCraft banner