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 - Indents and constructor initializer list
Summary: Indents and constructor initializer list
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-07 13:55 UTC by yuriy_lalym
Modified: 2012-10-09 08:37 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screenshot (138.40 KB, image/png)
2011-08-07 13:55 UTC, yuriy_lalym
Details

Note You need to log in before you can comment on or make changes to this bug.
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.