Reformat: Newlines around Method and #regions

Hi,
during the last hour, i tried to modify the Code-Reformat-Rules for my
preferences.
This is what i want:

#region FillNode
/// /// Description /// public void FillNode( TreeNode node, object[] oa ) { // ... some code } #endregion This is what i get: #region FillNode ///

/// Description /// public void FillNode( TreeNode node, object[] oa ) { // ... some code } #endregion How can i remove the newline after the #region and before the #endregion? I tried nearly every possible settings in resharper -> options -> Code Style ->]]> Blank Lines without finding a solution.

thx surech

2 comments
Comment actions Permalink

Hi Stefan,

Go to
ReSharper -> options -> Code Style -> Blank Lines -> Inside region
and set this value to 0

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Stefan Urech" <s.urech@[NOSPAM]fiveinfo.ch> wrote in message
news:ccgagj$5ma$1@is.intellij.net...

Hi,
during the last hour, i tried to modify the Code-Reformat-Rules for my
preferences.
This is what i want:

>

#region FillNode
/// <summary>
/// Description
/// </summary>
public void FillNode( TreeNode node, object[] oa )
{
// ... some code
}
#endregion

>

This is what i get:

>

#region FillNode

>

/// <summary>
/// Description
/// </summary>
public void FillNode( TreeNode node, object[] oa )
{
// ... some code
}

>

#endregion

>

How can i remove the newline after the #region and before the #endregion?
I tried nearly every possible settings in resharper -> options -> Code
Style -> Blank Lines without finding a solution.

>

thx surech



0
Comment actions Permalink

Oops,
there is a bug here in formatting.
Fixed in build 93

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Eugene Pasynkov" <Eugene.Pasynkov@jetbrains.com> wrote in message
news:ccgamg$6sl$1@is.intellij.net...

Hi Stefan,

>

Go to
ReSharper -> options -> Code Style -> Blank Lines -> Inside region
and set this value to 0

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Stefan Urech" <s.urech@[NOSPAM]fiveinfo.ch> wrote in message
news:ccgagj$5ma$1@is.intellij.net...

Hi,
during the last hour, i tried to modify the Code-Reformat-Rules for my
preferences.
This is what i want:

>

#region FillNode
/// <summary>
/// Description
/// </summary>
public void FillNode( TreeNode node, object[] oa )
{
// ... some code
}
#endregion

>

This is what i get:

>

#region FillNode

>

/// <summary>
/// Description
/// </summary>
public void FillNode( TreeNode node, object[] oa )
{
// ... some code
}

>

#endregion

>

How can i remove the newline after the #region and before the

#endregion?

I tried nearly every possible settings in resharper -> options -> Code
Style -> Blank Lines without finding a solution.

>

thx surech

>
>


0

Please sign in to leave a comment.