brackets-indentator
brackets-indentator copied to clipboard
Indenting documentation comment blocks
Love the plugin, thanks first and foremost. It's main weakness for me is it doesn't indent code blocks typically used for documentation purposes such as:
/**
* A description for a method
* @method someMethod
* @param {String} someParam
* @return {Object}
*/
Single line comments seem ok.
Sorry it took me so long to get back to this, and thanks for the kind words.
There's 2 issues with fixing this, though:
First, this plugin is very simple and is really just telling the code editor to re-indent. Any issues with weird or wrong indentation is because code mirror doesn't know how to indent properly. This plugin isn't sophisticated enough to adjust how various things are indented.
Second, I don't actually use Brackets anymore, so I'm not sure how much time I really want to put into my two Brackets plugins.
Thanks again for bringing this up, though.
Same issue with HTML comments.
<div>
Foo
</div>
<!--
Hello there !
-->
<div>
Bar
</div>
Becomes :
<div>
Foo
</div>
<!--
Hello there !
-->
<div>
Bar
</div>
:+1: