Sublime Forum

Flexbox autocomplete support

#1

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

0 Likes

#2

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?

1 Like

#3

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.

1 Like

#4

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.

0 Likes

#5

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. :wink:

0 Likes

#6

Any update on this? I would like FLEXBOX auto completions in CSS.

0 Likes

#7

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?

0 Likes

#8

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

0 Likes

#9

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.

1 Like

#10

just tried complition for: justify-content: space-between; and it doesn’t works

0 Likes

#11

Missing flexbox completions are proposed in https://github.com/sublimehq/Packages/pull/3625

0 Likes