Giter Club home page Giter Club logo

Comments (7)

badsyntax avatar badsyntax commented on July 4, 2024

Hey, thanks for the info. I did not know this feature existed! We can use sass-convert to beautify CSS (somewhat). It's not perfect though! For example, it does not beautify the css selectors very well.

EG, try beautify this css:

article        .title {
        color: red;
}

(The underlying command would be this: sass-convert --to scss --from scss style.css)

I don't think sass-convert was intended to beautify CSS, thus there's a very real chance this won't work sometime in the future, but there's no harm in releasing this as a 'hidden' feature. This should be an easy change, I will add it soon!

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

Ok I've added this feature but as mentioned before I'm going to keep it 'hidden' and undocumented. Upgrade your packages to pull down this change. ( I can't say exactly when you'll be able to pull down this latest change, but likely by the time you read this it will be updated, otherwise, give it a couple of hours.) I'll close this ticket when I've verified this works when installing/upgrading the package via sublime package control.

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

I'm going to close this ticket as the ST package control has updated this package. I had to uninstall and then re-install this package to get the latest changes (instead of just upgrading).

from sassbeautify.

WilliamVercken avatar WilliamVercken commented on July 4, 2024

Hi ! (sorry, late answer)
I just tested, and it works on .css files.
Not on an unsaved file (without .css or .scss extension), so we can't use it "anywhere" but nevermind !
Thank you for your work ! :)

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

I don't think I'll be able to make it work on unsaved files as I need the file extension to determine what type of file the user is trying to beautify.

from sassbeautify.

WilliamVercken avatar WilliamVercken commented on July 4, 2024

Yeah, I looked at the code here 9595a99 and I saw you needed the file extension, that's why I didn't insist ! :)

from sassbeautify.

badsyntax avatar badsyntax commented on July 4, 2024

FYI, here's the cause of the upgrading issue now that I've moved to using tags: wbond/package_control_channel#2480

from sassbeautify.

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.