A
Alex Clark
Hi All,
Not sure if this is limited to VB.NET or if it affects the C# editor too,
but here goes.
In a new solution, inside a blank code file create an empty class inside a
Namespace. Then, at the bottom of the code after End Namespace, add code
for an Enum, as shown below:
' ================
Namespace Test1
Public Class Class1
End Class
End Namespace
Public Enum ABC
foo
bar
snay
End Enum
' ================
Collapse the code region for the Enum (or just do the Ctrl+M, Ctrl+O).
Somewhere inside the class, press return. A carriage return is inserted but
the cursor doesn't move to a new line! I've searched through the options
dialog but strangely can't find anything that says "Don't go to a new line
after inserting a carriage return when there's a Namespace, Class,
Enum....etc", so all I can assume is that it's a bug in the editor? Please
someone correct me if I'm wrong!
Cheers,
Alex Clark
Not sure if this is limited to VB.NET or if it affects the C# editor too,
but here goes.
In a new solution, inside a blank code file create an empty class inside a
Namespace. Then, at the bottom of the code after End Namespace, add code
for an Enum, as shown below:
' ================
Namespace Test1
Public Class Class1
End Class
End Namespace
Public Enum ABC
foo
bar
snay
End Enum
' ================
Collapse the code region for the Enum (or just do the Ctrl+M, Ctrl+O).
Somewhere inside the class, press return. A carriage return is inserted but
the cursor doesn't move to a new line! I've searched through the options
dialog but strangely can't find anything that says "Don't go to a new line
after inserting a carriage return when there's a Namespace, Class,
Enum....etc", so all I can assume is that it's a bug in the editor? Please
someone correct me if I'm wrong!
Cheers,
Alex Clark