Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: expand/collapse object/arrays declaration #44

Open
enzoclock opened this issue Mar 3, 2022 · 2 comments
Open

Feature request: expand/collapse object/arrays declaration #44

enzoclock opened this issue Mar 3, 2022 · 2 comments

Comments

@enzoclock
Copy link

Hi 馃憢 Thanks for this very useful extension 馃檹

I was looking for a code action to split/merge an array into multiple/single lines, like so:

I found this extension which works fine.
But I suppose it can be a nice addition to JS-booster, with the usual quick-action trigger.

Would it be interesting?

@xsburg
Copy link
Owner

xsburg commented Mar 4, 2022

Hey @enzoclock,
Thanks for the idea! I wonder, what would be the use case for this action in JavaScript/TypeScript code? I would expect most people to use Prettier for automated code formatting, which would eliminate the results of this action. 馃

@enzoclock
Copy link
Author

enzoclock commented Mar 4, 2022

Hey @xsburg
I'm reading from the Prettier doc that this feature exists, but yet is considered as a "workaround-feature" since there aren't obvious reversibility rules.

Personally, I wouldn't mind having to decide when to expand/collapse an object/array, depending on the code context, rather than having automatic fixing. Wdyt?

Also, I've read this feature exists for webstorm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants