Sublime Forum

CSS value completion based on property

#1

Hi, is there a way to show completions for the possible values for a CSS property?

For example:

body { position: would show only the values for the position property.

Currently, it shows if I start typing, if I type f it will show fixed, if I type r, it will show relative. If I use the alt+/ key binding, it shows many values that do not seem appropriate to the property.

I want to list all the possible values for a specific property, how can I do that?

Thanks.

0 Likes

#2

what build are you using? build 3129 should only show values for the correct property, as it was fixed here:

0 Likes

#3

I’m on build 3126, I guess I will have to wait until the next beta build.

Thanks!

0 Likes

#4

you can follow the instructions on the readme of that repo to override your build’s CSS package with the one from the master branch if you don’t want to wait :slight_smile:

1 Like

#5

Awesome! Worked perfectly! Thank you very much! :smiley:

0 Likes

#6

Side Note: I highly recommend installing the OverrideAudit plugin so that you don’t forget about your override when the next non-dev build is released, otherwise you may lose out on other improvements that could theoretically get made in the CSS package in the future. (The readme of that package will explain everything :slight_smile: )

3 Likes