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.
Summary: | Reformat does not work sometimes | ||
---|---|---|---|
Product: | cnd | Reporter: | Rocon |
Component: | Editor | Assignee: | Alexander Simon <alexvsimon> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Rocon
2016-01-21 13:03:02 UTC
My Email is 956269867@qq.com 修改: 当我对一下c++代码格式化时,lambda内的缩进不正确 应为: 当我对以下c++代码格式化时,lambda内的缩进不正确 Please, describe your problem in English. Thanks! Before reformat: void renderScene (void) { using namespace D2D::draw; Do(5, [] { clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); }); } After reformat: void renderScene(void) { using namespace D2D::draw; Do(5, [] { clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); }); } fixed in enum, change set: 84fbdd5f8b0f Integrated into 'main-silver', will be available in build *201601280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f8ab6f9d453f User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #257662 Reformat does not work sometimes (transplanted from 84fbdd5f8b0f1dea763537a0fe930b32d8f03c1e) My scenario: - Set Editor > Formatting > C++ > Style = ANSI - Create C++ Application with main.cpp - Select C++ standard - Add such code: void renderScene (void) { using namespace D2D::draw; Do(5, [] { clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); }); } - Reformat code ===> void renderScene(void) { using namespace D2D::draw; Do(5, [] { clear(100, 100, 100); // <-- extra space in this line clear(100, 100, 100); clear(100, 100, 100); clear(100, 100, 100); }); } additional fix in enum: b4b482617367 Fixes of this bug: http://hg.netbeans.org/releases/rev/b4b482617367 Integrated into 'main-silver', will be available in build *201602050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/712995fc04c8 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #257662 Reformat does not work sometimes - additional fix (transplanted from b4b4826173674cd1d3a57deb78893f3b830f6c4e) Verified in trunk Verified in NetBeans 8.1 patch1 |