brackets-indentator icon indicating copy to clipboard operation
brackets-indentator copied to clipboard

Indenting documentation comment blocks

Open IamAdamJowett opened this issue 10 years ago • 3 comments

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.

IamAdamJowett avatar Sep 19 '14 06:09 IamAdamJowett

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.

ahuth avatar Oct 20 '14 00:10 ahuth

Same issue with HTML comments.

            <div>
                Foo
            </div>
            <!--
                Hello  there !
            -->
            <div>
                Bar
            </div>

Becomes :

            <div>
                Foo
            </div>
            <!--
Hello  there !
 -->
            <div>
                Bar
            </div>

WilliamVercken avatar Apr 02 '15 08:04 WilliamVercken

:+1:

marcominetti avatar Nov 25 '15 16:11 marcominetti