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.
I untick the checkbox "expand tabs to spaces", I set the "tab size" to 4, and the "number of spaces per indent" to 4. This is the behavior: after close the options dialog, write a tab in the source editor and press the backspace key. The caret go back just an space, instead a complete tab (4 spaces). I restart the IDE and the problem persist. But if I put the value "number of spaces per indent" in 8 instead 4 work as expected. I think is a misconfiguration issue. Thanks, and sorry my english
Same problem for me on Mac. I've also noticed an "<Unrecognized setting>" node under the "Indentation Engines" node in the Advanced Configuration. Maybe this is related. Note: On my Intel-based Mac, the indentation seems to work during a session after I reselect my preferences, but gets lost when restarting. On my PowerPC-based Mac, the indentation doesn't seem to fully respond to preferences even during the session. (Maybe it's me.) Another related observation: Any tabs that existed in the java file when it was loaded seem to indent per preferences. Any indentation changes expand the selected lines' tabs to spaces, and the wrong number of spaces too. <rant>The indentation preferences in NetBeans have been flaky for years... I dread new versions because I know the imported indentation settings will be messed up, if they work at all. An overhaul of this part of the editor might be due?</rant>
See the note from 'jiriprox' on Sep 24 on bug# 115997 ( http://www.netbeans.org/issues/show_bug.cgi?id=115997 ) This worked for me too. (That may explain why I got it working on my other computer... I had tinkered with it longer and probably got lucky.) I'd suggest this bug be closed in favor of 115997.
If your broken indentation comes from imported 5.5.1 (or earlier) settings then I'll close this issue as duplicate. Feel free to reopen or enter new issue if you encounter any further problems. Thanks for your investigation of this issue. *** This issue has been marked as a duplicate of 115997 ***
Yes, I believe my problem was caused by the importing of 5.5.1 settings.