Comments (7)
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.
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.
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.
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.
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.
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.
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)
- General config file in repo for sharing between developers
- Not working after latest ST3 Update HOT 2
- Option to re-order css properties on beautify HOT 3
- Leading zero HOT 1
- [Errno 2] No such file or directory: 'sass-convert' HOT 7
- Indentation HOT 4
- Extra line between comment and closing bracket HOT 1
- Add missing semicolons automatically rather than sass-convert throwing error
- Double quotes in single quotes are changed on compile
- Simply not working
- it does't work and throw a error 'UnicodeDecodeError'
- UTF-8 not supported
- SassBeautify throwing the following error - No such file or directory 'sass-convert' HOT 9
- Attempting to use BEM methodology Sass breaks formatting
- Ability to set FinalNewline to true HOT 1
- [Errno 2] No such file or directory: 'sass-convert' HOT 2
- Double quotes are changed on compile
- Allow manual use on non .scss/.sass/.css files. HOT 1
- Error
- going insane
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sassbeautify.