[407] Live Templates in R# 3.0

I have live templates from R# 2.5 and now works on R# 3.0 and it gets
indentation problems in it.

I have this live template:

#region Singleton property
private static $CLASS$ $singletonname$;

/// /// Get singleton instance of $CLASS$ /// ]]>
public static $CLASS$ $SINGLETONNAME$
{
get
{
if ($singletonname$ == null)
{
$singletonname$ = new $CLASS$();
}
return $singletonname$;
}
}
#endregion


But resharper wrong indent code inside #region, but #region and
#endregion indent ok. In R# 2.5 everything is indented ok.


Resharper 3.0 EAP build 407

--
Peter Sulek
terrorix@centrum.sk
XanaNews ver. 1.18.1.6



Attachment(s):
r#_livetemplates.jpg
1 comment
Comment actions Permalink

Peter Sulek wrote:

I have live templates from R# 2.5 and now works on R# 3.0 and it gets
indentation problems in it.

I have this live template:

#region Singleton property
private static $CLASS$ $singletonname$;

/// <summary>
/// Get singleton instance of $CLASS$
/// </summary>
public static $CLASS$ $SINGLETONNAME$
{
get
{
if ($singletonname$ == null)
{
$singletonname$ = new $CLASS$();
}
return $singletonname$;
}
}
#endregion


But resharper wrong indent code inside #region, but #region and
#endregion indent ok. In R# 2.5 everything is indented ok.


Resharper 3.0 EAP build 407



ehm, #endregion is not indented ok, my mistake.

--
Peter Sulek
terrorix@centrum.sk
XanaNews ver. 1.18.1.6

0

Please sign in to leave a comment.