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 200731

Summary: Indents and constructor initializer list
Product: cnd Reporter: yuriy_lalym <yuriy_lalym>
Component: EditorAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: screenshot

Description yuriy_lalym 2011-08-07 13:55:24 UTC
Created attachment 109834 [details]
screenshot

More low I write a minus instead of a indent space.
That we have now. We have an error.

screenshot:

TextBrowser::TextBrowser(QWidget *parent) : QWidget(parent), <ENTER>
------<NEW POSITION>

We appear not in the fifth position (a red arrow), and in the sixth (a dark blue arrow). The editor has confused articles of indents.

OK.

It is much better to have

1. Multiline alignment.

   For example "Indent Namespace" = 2

namespace
{
--TextBrowser::TextBrowser(QWidget *parent) : QWidget(parent),
----------------------------------------------Color("Red")
--{
--}
}

2. Shift to a colon if it in a new line + multiline alignment.

   For example "Indent Namespace" = 2 "Our Shift" = 4

namespace
{
--TextBrowser::TextBrowser(QWidget *parent)
------: QWidget(parent),
--------Color("Red")
--{
--}
}

OR

namespace
{
--TextBrowser::TextBrowser(QWidget *parent)
------: QWidget(parent), Color("Red"),
--------Width(200), Height (500)
--{
--}
}

3. Shift if it in a new line + multiline alignment.

   For example "Indent Namespace" = 2 "Our Shift" = 4

namespace
{
--TextBrowser::TextBrowser(QWidget *parent) :
------QWidget(parent), Color("Red"),
------Width(200), Height (500)
--{
--}
}
Comment 1 yuriy_lalym 2011-08-07 14:08:11 UTC
Я не предлагаю выбрать один из пунктов, а говорю о всех пунктах как о едином целом. Извините, на английском сложно.
Comment 2 Leonid Lenyashin 2011-08-08 10:33:58 UTC
Russian is fine for us, Yuriy. :) 
Thank you.
Leonid.