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.
templates are formatted as they are inserted, so if a user wants only spaces (they have 'insert spaces for tabs' option set) they will still get spaces. however the opposite is not true; if a user wants tabs and the template contains spaces, they are stuck with spaces unless they reformat. there are many templates which use spaces. they should be reformatted to use tabs so the choice is left to the user.
The java templates all go through the indentation engine so once you have e.g. a Tab Size set to 4 in the editor settings and spaces per tab to 4 in the indentation engine and expand tabs set to false then you should see the tab characters in the file created from template. I've tested it with the Main.java class template in the recent dev builds. Could you please provide a concrete example where this fails? Thanks.
adding new jsp or jspx pages to web projects add the pages with spaces, for one. maybe they aren't making it through the indentation engine?
Yes, it might be the case. Reassigning to web module for evaluation.
Web templates don't use indentation engine :( - see issue 39481.
The formatter should be called after object is created.
TM 5.0->TBD
*** Issue 39481 has been marked as a duplicate of this issue. ***
still relevant with 6.0
*** Issue 114308 has been marked as a duplicate of this issue. ***
moving opened issues from TM <= 6.1 to TM=Dev
its already fixed, the templates are indented after being inserted