Bug 365454 - Incorrect auto-indenting behavior if curly brace used on inner if/for/etc but not used on outer if/for/etc
Summary: Incorrect auto-indenting behavior if curly brace used on inner if/for/etc but...
Status: RESOLVED DUPLICATE of bug 325187
Alias: None
Product: MonoDevelop
Classification: Mono
Component: C# Binding (show other bugs)
Version: SVN
Hardware: Other openSUSE 10.3
: P5 - None : Normal
Target Milestone: ---
Assignee: Michael Hutchinson
QA Contact: MD Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 01:17 UTC by Sandy Armstrong
Modified: 2008-05-19 15:13 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sandy Armstrong 2008-02-28 01:17:58 UTC
Using the managed edtior in SVN trunk...

If I type:

if (true)
    if (true) {

I would expect that hitting Enter after the curly brace would auto-indent the next line an additional level, like this:

if (true)
    if (true) {
        | // cursor is indented

However, what I actually see is this:

if (true)
    if (true) {
    | // cursor should be indented one more level

Both of these scenarios behave correctly, though:

if (true)
    if (true)

if (true) {
    if (true) {
Comment 1 Michael Hutchinson 2008-05-19 15:13:50 UTC

*** This bug has been marked as a duplicate of bug 325187 ***