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.
Currently formatting reindents comments to the same level. We should decide on one the following strategies: - not to touch the comments content at all (5.5 behavior) - format them relatively (move the whole block, preserve indentation within block)
I would propose your second variant. To indent whole block of code and to prevent it's content. The same behavior should be also for preformated text (<pre>), scripts and maybe also for styles.
in the current build formatting comments it is back to the 5.5 behavior. Changing issue type to enhancement
I agree with #2. But only for comments: <pre> must be preserved as is; <style> and <script> content is formatted by CSS and Javascript formatters.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss