Hi. I would like to start using CSS Flexbox and noticed that my Sublime Text 3 auto complete does not support it. I wonder why? Is this something that I can enable or is it coming? If not I really would like this built-into Sublime Text.
I searched for a package, but did not find any.
Thanks
Vayu
Flexbox autocomplete support
This should be working out of the box already (via).
What build are you running? Is this CSS syntax or something a preprocessor uses? Can you share reproduction steps?
I am using Build 3126. I have checked to see if there are any updates, it doesn’t seem like there are.
Yes, this is plain CSS syntax in a .css file. It just seems like that any flexbox style is unknown to Sublime Text.
I can confirm that flexbox properties don’t seem to be completed for me:
Potentially related to https://github.com/SublimeTextIssues/Core/issues/1061.
I suggest commenting on the issue I linked earlier or creating a new one at the sublimehq/Packages repo.
Thanks for confirming this issue. I wonder why this is not something more people mention, since flexbox is gaining a lot of terrain now. I really hope that this is on the roadmap for the next version.
They work fine for me in build 3139 and 3126.
The completions were added as of build 3096 (https://github.com/sublimehq/Packages/commit/40a8f3bf956fc0a90841ea8ffea6ea5cbb84d9b6).
I wonder if you have a package installed that is providing an alternative CSS syntax or completions?
it might help if you mention specifically what autocompletions you think are missing
I just had a quick look at https://css-tricks.com/snippets/css/a-guide-to-flexbox/ and ST completes the ones I checked
Got it now I see Flex-Box completions in CSS, I have a LESS package which isn’t updated in last 3 years and don’t have flex-box completions. I started using LESS-IMPROVED which has flex-box completions. Thanks.
just tried complition for: justify-content: space-between;
and it doesn’t works
Missing flexbox completions are proposed in https://github.com/sublimehq/Packages/pull/3625