Wagnerp / alsing

Automatically exported from code.google.com/p/alsing
0 stars 1 forks source link

Smart indenting behaves strangely (C#) #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
In an empty SyntaxBox, type:
using System;
namespace
{
}

What is the expected output? What do you see instead?
We would expect the output to appear as above, with the caret after the 
closing curly brace.  Instead, namespace and curly braces are indented (by 
a tab and a space), and the caret is at the start of the last row.  If the 
caret is then placed after the closing curly brace and the user types 
Enter, the closing curly brace is moved down a line and indented by 
another tab and space.  The caret is placed before the last space (so the 
final line is "\t\t | }" where | denotes the caret)

There is no way to add a new line after the closing brace.

What version of the product are you using? On what operating system?
I am using the most recent code (as of 3/18/09, on Windows XP.

Please provide any additional information below.

I'll see if I can figure out a fix, but if you or anyone else has one 
finished, I'd appreciate it.

Original issue reported on code.google.com by david.st...@gmail.com on 19 Mar 2009 at 1:19

GoogleCodeExporter commented 8 years ago
Tested this one with the last version.
No issues here. 
May have been corrected.

Original comment by marcelo....@gmail.com on 19 Dec 2009 at 1:53