This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190599 - C++ should have label alignment option
Summary: C++ should have label alignment option
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-26 09:32 UTC by flopper
Modified: 2012-05-27 08:38 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flopper 2010-09-26 09:32:20 UTC
There should be a label alignment option. I don't like the jitter created by dedented labels and prefer them on the same column as all other code. The same for public/private/protected: and case labels in switch statements.
Comment 1 invcosine 2012-05-27 08:38:42 UTC
I think there is different styles. Which means options. I would prefer all labels to appear one level of indentation less than where it appears, such as Xcode (but I love netbeans!).

Xcode does this:
    {
        //...
        if (ret == EXIT_FAILURE)
        {
            fprintf(stderr, "error ...\n", );
            goto skip_over;
        }
        
    skip_over:
        // clean up memory
        return;
    }


Netbeans currently (7.1) does:

        {
            //...
            if (ret == EXIT_FAILURE)
            {
                fprintf(stderr, "error ...\n",);
                goto skip_over;
            }

skip_over:
            // clean up memory
            return;
        }

While writing/coding, pressing enter will keep the label inline with the rest of the code. Looking like this:

        {
            //...
            if (ret == EXIT_FAILURE)
            {
                fprintf(stderr, "error ...\n",);
                goto skip_over;
            }

            skip_over:
            // clean up memory
            return;
        }


Gee I hope the spaces come out in these samples.