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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support formatting option: vertical align #2275

Open
ngdangtu-vn opened this issue May 25, 2024 · 2 comments
Open

Support formatting option: vertical align #2275

ngdangtu-vn opened this issue May 25, 2024 · 2 comments

Comments

@ngdangtu-vn
Copy link

Description

I prefer a neat list with proper align for CSS, Js/Ts and HTMl

Input

With this new feature, when I give like this input:

<input
    id="ok"
    name="ok"
    autocomplete="off"
/>
:root {
   --round-small: 0.0625rem; // 1px
   --round-medium: 0.125rem; // 2px
   --round-pretty-big: 0.25rem; // 4px
}

Expected Output

I'd like to see this output:

<input
    id           ="ok"
    name         ="ok"
    autocomplete ="off"
/>
:root {
   --round-small      : 0.0625rem; // 1px
   --round-medium     : 0.125rem; // 2px
   --round-pretty-big : 0.25rem; // 4px
}

For Js/Ts is when you group all declaration vars (no newline) or you have a list (array, map) in multiple lines.

Environment

OS: Linux

Somehow on my pc the github didn't display monospace font properly so I didn't see a correct vertical align, hopefully you can see it on your side.

@Ghanshyam-07
Copy link

I would like to contribute , please assign it to me

@ngdangtu-vn
Copy link
Author

ngdangtu-vn commented Oct 18, 2024

So it is the time of the every year eh?

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

3 participants