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 212436 - Re-indent action on multi-line Selection only re-indents first line in .cpp files
Summary: Re-indent action on multi-line Selection only re-indents first line in .cpp f...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1.2
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 17:13 UTC by thoughton
Modified: 2014-02-12 02:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thoughton 2012-05-13 17:13:01 UTC
First of all I had to create a custom key-mapping in Options/Keymap for the "Re-indent Current Line or Selection" action. In my case I mapped it to "CTRL+EQUALS".

Then when working in a .cpp file, if I select multiple lines and press the aforementioned key combination, only the first line of that selection will get re-indented.

I would expect all lines in the selection to be re-indented.

Interestingly, in .java files this does work as I expect (ie. all of the selected lines get re-indented).
Comment 1 Alexander Simon 2014-02-11 10:53:13 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/01bda88ee727
Comment 2 Quality Engineering 2014-02-12 02:41:11 UTC
Integrated into 'main-silver', will be available in build *201402120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/01bda88ee727
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #212436 Re-indent action on multi-line Selection only re-indents first line in .cpp files