Package for showing all possible CSS values in Sub

2020-03-03 07:27发布

With the basic Sublime Text 2 build, I am getting CSS value autocompletion only when I type the first letter of the value, as seen in the image below.

Basic CSS autocompletion

However, I've been watching the Tuts HTML+CSS web tutorials (here is an example video), and his Sublime Text build shows all possible CSS for a given attribute. Below is a screenshot from the linked example video.

Display of all possible CSS values for a given attribute

My question is what setting or package allows for the display of all possible CSS values for a given attribute?

4条回答
The star\"
2楼-- · 2020-03-03 08:05

There is no package needed in Sublime Text 2 to display all possible completions, e.g. all possible values for a CSS property, but LaceLafontaine's answer is no longer current. Cmd+Space doesn't work on Macs, partially because it's a shortcut for a spotlight search.

Currently the shortcut to display the completions in OSX is Ctrl+Space. I believe it's the same for both Mac and PC. The issue was discussed here: https://github.com/processing/processing/issues/2699

查看更多
放我归山
3楼-- · 2020-03-03 08:09

Linux Users

For me it worked when I config using this:

"auto_complete_triggers":
[
  {
    "characters": ": ",
    "selector": "source.css",
  },
],

And then you use Space as trigger. There is an additional space before every value, but Minify or HTML-CSS-JS Prettify will delete all these spaces

查看更多
家丑人穷心不美
4楼-- · 2020-03-03 08:14

No additional packages or specific settings were needed to solve this issue. The Ctrl/Cmd+Space keyboard shortcut natively displays all possible completions.

查看更多
Animai°情兽
5楼-- · 2020-03-03 08:18

Try different plugins through Package Control.

Specifically trying these may work for you:

查看更多
登录 后发表回答