codepainter icon indicating copy to clipboard operation
codepainter copied to clipboard

Adding spacing between parameters

Open mrspence opened this issue 8 years ago • 1 comments

This is a brilliant resource! I've found it highly useful in some of my projects, to ensure a consistent syntax. Would it be possible to add this as a feature?

Example:

function foo(a,b,c){
    console.log(a+b+c);
}

Would Become:
function foo ( a , b , c ) {
    console.log( a+b+c )
}

or

$("a.very.specific.link").click();
$(body).find("div").each(function(){
    $(this).hide().fadeIn("slow");
});

Would Become:

$( "a.very.specific.link" ).click();
$( body ).find( "div" ).each( function(){
    $( this ).hide().fadeIn( "slow" );
} );

Reference: https://github.com/editorconfig/editorconfig/issues/83

mrspence avatar Oct 18 '17 15:10 mrspence

Hi @mintymatt. I'm no longer interested in supporting this project, so it would have to be someone else.

jednano avatar Oct 18 '17 17:10 jednano