Git Product home page Git Product logo

Comments (6)

Glavin001 avatar Glavin001 commented on May 22, 2024

JavaScript beautifying is being handled by https://github.com/beautify-web/js-beautify
You could check with them and / or make an issue there. If they allow this and there is some configuration to enable it, post back here and I will make it work on atom-beautify :).

Thanks for your support!

from atom-beautify.

karolyi avatar karolyi commented on May 22, 2024

This is something that python has in their PEP-8 afaik, but I have a hard time accepting it there too. This just f*cks up indenting so badly that one could end up with even worse than spaghetti code.

I would strongly disadvise using it.

from atom-beautify.

Glavin001 avatar Glavin001 commented on May 22, 2024

I personally would not use it either: I prefer the former beautification result.
@mcdonnelldean if js-beautify supports customizing that indentation as you demonstrated, I can surely add support for that configuration option to atom-beautify, however I suspect they currently do not and likely will not because it's not as desirable.
That being said, Pull Requests are always welcome.

from atom-beautify.

mcdonnelldean avatar mcdonnelldean commented on May 22, 2024

Hmmm,

It seems that the preview lied to me, i was trying to have all the .'s line up. This is more coming from being a .net developer. I think what I will do is give the new way a shot and if it keeps niggling I'll look into attempting a PR on the js-beautify repo.

Thanks for all the help guys!

from atom-beautify.

Glavin001 avatar Glavin001 commented on May 22, 2024

Best of luck @mcdonnelldean and do not hesitate to let us know of any other issues you have.

from atom-beautify.

mcdonnelldean avatar mcdonnelldean commented on May 22, 2024

Cheers!

Thanks again for a great plugin!

from atom-beautify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.