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

New Lines before/after region

5 Answers 145 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.
Christian
Top achievements
Rank 1
Christian asked on 12 Sep 2011, 11:21 AM
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
    }
}

5 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 15 Sep 2011, 12:25 PM
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 >>

0
Pedro Lamas
Top achievements
Rank 1
answered on 11 Oct 2011, 05:51 PM
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
0
Kaloyan
Telerik team
answered on 13 Oct 2011, 03:49 PM
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 >>

0
Iwhp
Top achievements
Rank 1
answered on 16 Mar 2012, 04:51 PM
This is not yet resolved! Any dates when this will be fixed?
Thankx, Cheers Harry
0
Kaloyan
Telerik team
answered on 21 Mar 2012, 11:18 AM
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 >>
Tags
General Discussions
Asked by
Christian
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Pedro Lamas
Top achievements
Rank 1
Iwhp
Top achievements
Rank 1
Share this question
or