Hi there and welcome.
Suggestions have some intelligence in sublime. If something is syntactically out of context it won't make suggestions, or it'll guess the wrong context. In your example, if you just type visibility: into an empty CSS file it mis-suggests as you point out. But it works inside a correct CSS block, so:
- Code: Select all
Pressing ctrl+space with the cursor in that position will bring up the complete suggestion list, and typing 'h' will filter it giving you a single 'hidden'; tab autocomplete will work on the topmost list item.
So basically: use correct syntax and you'll get the right suggestions.
I'm at a loss as to why sublime suggests height etc. out of context; probably it has to do with mismatched regex in the tmLanguage file for CSS or something along those lines. In any case it's syntactically incorrect at this scope, so I wouldn't worry about it; suggestions, autocomplete and colouring are all designed to work with code that's syntactically correct for the language, and aren't designed to handle user errors in syntax.