No project description provided
Project description
✨ ALCSS ✨
Aligner of a splitter in css files
Example
- Imagine you have file -
my-awesome-style.css
body {
margin: 25px;
background-color: rgb(240, 240, 240);
font-family: arial, sans-serif;
font-size: 14px;
}
- Run this program
alcss my-awesome-style.css
- Result
body {
margin : 25px;
background-color : rgb(240, 240, 240);
font-family : arial, sans-serif;
font-size : 14px;
}
Requrirements
Check that you have:
python 3.x
pip
(optionally)
Installation
This program can be installed from pypi
py -m pip install alcss
pip3 install alcss
Arguments
short | long | description | default |
---|---|---|---|
-l |
--lmargin |
Sets spaces before : character |
2 |
-r |
--rmargin |
Sets spaces after : character |
2 |
-i |
--indent |
Sets indentation inside {} block | 4 |
-s |
--shout |
Forces program to print info to stdout | False |
-h |
--help |
Shows help |
Options meaning
div {
____border_____:_____1px solid black;
↑ ↑ ↑
indent lmargin rmargin
}
Tips
-
Use after default formmater of VS code as default formatter removes spaces before
:
character -
To add auto aligning after save:
-
Add Run on Save extension
-
Press ctrl + P and search for Preferences: Open Workspace Settings (JSON)
-
Add code below into the opened file and save
{
"emeraldwalk.runonsave": {
"commands": [
{
"match": ".css",
"cmd": "alcss ${file}"
}
]
}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alcss-1.0.0.tar.gz
(4.4 kB
view hashes)