auto formatting inserts tabs where not needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
monodevelop (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: monodevelop
running on trunk beta 1:
auto formatting is going wrong sometimes. i have kind of vs.net formatting: all curly braces precede with a return.
Create a new file with the following text. Now replace xxxx by } which results in the code below the ======. there u see too much tabs inserted.
namespace X
{
public sealed class Cache
{
#region general
public enum Mode : short
{
Static
}
/// <summary>
/// Returns the unique key for that mode
/// </summary>
private static string CacheKey(Mode mode)
{
if (mode == Mode.Static)
return "";
xxxx
}
}
}
=======
namespace X
{
public sealed class Cache
{
#region general
public enum Mode : short
{
Static
}
/// <summary>
/// Returns the unique key for that mode
/// </summary>
private static string CacheKey (Mode mode)
{
if (mode == Mode.Static)
return "";
}
}
}
}
remark: i also had 'smart' indentation turned on.