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.
Product Version = NetBeans IDE 8.2 (Build 201609300101) Operating System = Linux version 4.7.5-200.fc24.x86_64 running on amd64 Java; VM; Vendor = 1.8.0_101 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Reproducibility: Happens every time STEPS: * I have the following indentation settings for all the languages: Expand Tabs to Spaces: yes Number of Spaces per indent: 2 Tab Size: 2 inherited by all the languages (PHP and Javascript included) * I'm in a PHP page with this javascript code (please consider also the number of spaces included): email = $('input#txtRegEmail').val(); if(email === "") { $('div#regEmailError').html(A_ERR_MSG['ERR_EMAIL']); $('div#regEmailError').show(); return false; } else if(!isEmail(email)) { * I make the following selection (please consider also the spaces): if(email === "") { $('div#regEmailError').html(A_ERR_MSG['ERR_EMAIL']); $('div#regEmailError').show(); return false; } else until just before the second if. * When I press Backspace to delete the code selected, the indentation get broken with the remaining if starting at the beginning of the line instead to align under the existing "email = " * Same result in PHP code * Same result in NetBeans 8.1 ACTUAL: the indentation of the existing code get broken deleting a selection of code EXPECTED: the indentation of the code should be maintained
Created attachment 162417 [details] IDE log
Created attachment 162418 [details] code before the prb happen
Created attachment 162419 [details] code after the prb happen