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.
Scenario: - Create C++ project - Open main.cpp file - Type in main() function: int a = 1; // 16th line int b = 1; b++; a++; - Move cursor into 17:1 point - Press Shift+Down Arrow key 2 times (select 2 lines) - Press Alt+Enter - Select 'if' ("Surround with if (exp) { ...| }" menu item) ===> Expected code: int a = 1; if (exp) { int b = 1; b++; } a++; Real code: int a = 1; if (exp) { int b = 1; b++; } a++; // <-- wrong indent
fixed, change set: http://hg.netbeans.org/cnd-main/rev/d17a25c36e59
Integrated into 'main-silver', will be available in build *201402070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d17a25c36e59 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #241446 Wrong indent after "Surround with..."