millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Not seeing properties for formatting comments #428

Open Vasanthi-S opened 8 years ago

Vasanthi-S commented 8 years ago

Hi,

I am using esformatter plugin in my code and have made some settings for formatting of code. I am trying to make some settings for comments - block/line comments. But apart from few whitespace and indent proeprties for block comments, I do not see any properties under "lineBreak" to make any settings.

I also see some options using lineBreak.before.CommentGroup (https://github.com/millermedeiros/esformatter/commit/cf7ddf19eae393df791052c8024e769fc66123ca), which also doesnt seem to help.

Also there are mentions about add-on plugins like https://github.com/briandipalma/esformatter-spaced-lined-comment.

Summary of issue: Not seeing easy options to make settings for Block and Line comments in esformatter.

millermedeiros commented 8 years ago

Can you provide an input and expected output? That way it's easier to understand what you're trying to achieve. Thanks!

Vasanthi-S commented 8 years ago

Sure, here is an example(shared using gist.github) where a JSDoc comment is being formatted(using JSDT formater): https://gist.github.com/Vasanthi-S/1c3203db70ec464e7b978a9e1d587d46

I am not able to find properties in default.json which I could set to achieve a similar formatting using esformatter.

jzaefferer commented 8 years ago

Please use https://gist.github.com/ or a similar service that doesn't require download files to view code.

Vasanthi-S commented 8 years ago

Sorry, here is the file share link: https://gist.github.com/Vasanthi-S/1c3203db70ec464e7b978a9e1d587d46

Vasanthi-S commented 8 years ago

Please let me know if there are any updates on this issue.

millermedeiros commented 8 years ago

we don't support this, and think this should be handled by a plugin.