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.
After changing the options for the indentation engine (all of them) to NOT expand tabs to spaces, new classes created from the template (at least the New- >RMI->Sockets->Socket class) still expand their tabs internally to spaces, as well as completely ignoring all of the other indentation engine options one might happen to set. I'm using beta 3.
Hi, AFAIK, java module is not reformatting whole source code when instantiating template, so the code can not be reformatted. I would recommend you to either reformat the template or to reformat the code after new file created untill java module will not reformat the code. Passign to java module to add some comment.
Sadly, this is "as designed". The idea behind formatting templates was that the template *is* already formatted (since it is user-customizable, you can do the formatting, if different from the default). The reason why it is piped through the indentation engine is the macros, which can be inside the template. The replacement string may obscur formatting of the neighbouring text, so it is indented (through Indentation Engine). The rest (except macros) is left unchanged so the user-default formatting is preserved. If you feel uncomfortable with the above, please file an enhancement request against java module - but please describe how it should work and how do you think we can distinguish preformatted templates from the ones which needs to be formatted.
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.