How can I achieve the following code cleaning task below. Currently, JustCode leaves no new line above the propertry documentation.
Did I miss something?
namespace
MyNamespace{
using
System;
/// <summary>
///
/// </summary>
public
class
MyClass
{
/// <summary>
/// Gets or sets the fields.
/// </summary>
/// <value>The field.</value>
public
int
Property1 {
get
;
set
; }
[no new line here]
/// <summary>
/// Gets or sets the fields.
/// </summary>
/// <value>The field.</value>
public
int
Property2 {
get
;
set
; }
public
int
Property3 {
get
;
set
; }
public
int
Property4 {
get
;
set
; }
}
}
7 Answers, 1 is accepted
There are options for just that in Code Style -> C# -> New Lines - "Minimum/Maximum lines after auto-implemented properties". If you set these to 1s you'll get empty lines after each auto-property, no matter whether there are comments or not. If you set the values to 0 and 1, respectively, you can adjust the lines manually so that the JustCode formatter will take that into account and won't remove empty lines between auto-properties, in the same time it won't insert new lines where there weren't any. This way you'll get the desired result. Let me know if that works for you.
Greetings,Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I've uploaded a screencast here that shows JustCode's behavior in the given scenario with the latest official build. The test setup - VS 2010 with only JustCode (2011.2.916.0) installed and JC contains no solution sharing settings. The formatter seems to be doing its job in this case. Anything I'm missing here?
Greetings,Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Is there a way to send you my JustCode settings for your verification?
That'd be great, indeed. The general settings are here - C:\Users\<USER_NAME>\AppData\Roaming\JustCode, and the solution specific are in your solution foder and are of the following form: <SOLUTION_NAME>.jcsettings.xml. Please, send these over and I'll keep you posted on the results from our testing.
Greetings,Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I'm closing this thread. We'll continue our comuunication on the matter in the ticket you created.
Greetings,Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>