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.
The "Number of spaces per indent" is not remembered correctly for editors different than Java Editor. Re-invocation of options or switching to Basic mode couses the settings to be lost. Steps to reproduce: ------------------- 1) Open a html file 2) Reformat the code 3) Open Tools|Options|Advanced|Editing|Indentation Engines|HTML In. E. 4) Change "Number of spaces per indent" to ie. 25 5) Close OD 6) Reformat code --> changes are applied correctly 7) Invoke Tools|Options 8) Press OK 9) Reformat code --> chnages were reverted [NB 5.0 fcs 200601251500, JDK 1.6.0rc b69, solaris 10/sparc]
*** This issue has been marked as a duplicate of 70424 ***
This is definetely not a duplicate of 70424, which refers to change of indentation engine inside Tools | Options | Advanced Options | Editing | Editor Settings | Java Editor. This issue refers to forgotten settings inside Tools|Options|Advanced|Editing|Indentation Engines. These settings are not remembered at all, except of "Java". In case we do not intend to support different indentaion settings inside different editors, these settings should be removed. The problem persists in current builds. -------- NB 5.5 beta 200605020200 --------
*** Issue 75731 has been marked as a duplicate of this issue. ***
P3->P2. since this is the prio of the duplicate, and other issues depend on this..
Tools|Options|Advanced|Editing|Indentation Engines|... should be removed from old options dialog.
There is a patch which removes this section. Should be applied on 5.5. See issue 77768.
*** Issue 86639 has been marked as a duplicate of this issue. ***
When changing indentation settings from Tools/Options -> Editor -> Indentation all the indentation engines (for all languages) will be updated after applying the changes (i.e. clicking Ok or going to 'Advanced Options'). However when fiddling with a particular engine in 'Advanced options' the changes won't affect any other engine. They also won't show up in the 'Basic options' panel unless it's a java indentation engine you've been playing with. Checking in IndentationModel.java; /cvs/editor/options/src/org/netbeans/modules/options/indentation/IndentationModel.java,v <-- IndentationModel.java new revision: 1.5; previous revision: 1.4 done Checking in IndentationPanel.java; /cvs/editor/options/src/org/netbeans/modules/options/indentation/IndentationPanel.java,v <-- IndentationPanel.java new revision: 1.24; previous revision: 1.23 done
Thanks for the fix, but the initial scenerio is still reproducible in current trunk. Please follow the mentioned steps to reproduce. --- NetBeans IDE Dev (Build 061030) 1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b103 Linux version 2.6.12-1.1390_FC4smp running on i386 en_US (nb); UTF-8
*** Issue 86749 has been marked as a duplicate of this issue. ***
*** Issue 76390 has been marked as a duplicate of this issue. ***
*** Issue 89520 has been marked as a duplicate of this issue. ***
Fixed with issue #66187. The example is now XML not java. Also the indentation/formatting of HTML seems broken at the moment. Please verify the fix on SQL, DTD or some other documents. They might not have the 'reformat action', but you can use the indentation (eg. select a block and press tab, shift-tab; it should move the lines by the 'number of spaces per indent' spaces.
Verified on SQL and DTD indent. engines. Thanks for the fix. --- Product Version: NetBeans IDE Dev (Build 070806) Java: 1.6.0_01; Java HotSpot(TM) 64-Bit Server VM 1.6.0_01-b04 System: SunOS version 5.10 running on sparcv9; ISO646-US; en (nb) Userdir: /home/ms159439/.netbeans/dev