Sublime Forum

ST3 Bug? CSS selector auto completion popup does not work

#10

I also do not have a CSS.sublime-package inside of my “Installed Packages” folder. I’m on Mac w/ Sublime 3059.

Anyway I found this thread because I had a problem similar to this. I googled ‘meta.selector.css’ and wound up here.

I installed subhaze’s CSS Extended Completions package, and the css pseudo selectors would just not work.

Well anyway, if anyone else has that package installed and had the same problem I did just do this.

Edit your css_style_completions.sublime-settings User file.

Add this

{ "css_completion_scope": "" }

The default value is this

"css_completion_scope": "meta.selector.css"

I don’t know if that issue is related to this bug (probably it is?), but it did help me solve that problem so thank you.

0 Likes

#11

Anyone else have any luck fixing this bug? I tried what @FichteFoll suggested and although I was able to edit the CSS/Completion Rules.tmPreferences, still no class/id name auto complete for me. It is still only accessible via “Ctrl+Space”. It would be great to have this functionality back. I have two different installs of ST3 Build 3059 with this issue, one a perfectly clean install. Any help would be HUGELY appreciated. Thanks.

0 Likes

#12

Sorry, but if what I proposed doesn’t work I’m out of options currently (and don’t feel like digging into it again).

0 Likes

#13

This is still an issue as of 09.08.2014, for anyone wondering.

I am using win 7 and can only get this to work by pressing CTR+SPACE, which is kinda weird…

0 Likes

#14

FYI, I recently did some digging here which you can read at github.com/SublimeText/Issues/issues/283

0 Likes

#15

Alright thanks for the info and for your efforts. But there is not any working solution as of now, correct?
I am just wondering why would this file be added if it doesn’t do anything besides killing autocompletion? On page1, you recommened to delete it (I haven’t tested that yet because I wanted to keep my install folder clean. But I’ll have to make a save and do it soon if nothing else can be done).

I should add that I am new to ST3 and so far it’s feeling great. I’d love to see this getting fixed though :smile:

0 Likes

#16

github.com/SublimeText/Issues/i … t-51718270

0 Likes

#17

Would really like to see this fixed. Tried the solutions listed in this thread to no avail (running Dev 3075 mac)

0 Likes

#18

This is a breaking bug for front end developers…

How come this isn’t solved yet?

0 Likes

#19

The Answer from tito was helpful for me. OS: win10. Take a minute to read his post and you will have success…

If not here is a step by step guide:
The questionable file is inside ‘CSS.sublime-package’ -> located in ‘C:\Program Files\Sublime Text 3\Packages’. You can open it with any zip-software. Inside you find the file to delete ‘Completion Rules.tmPreferences’. If this doesn’t work in your zip-software directly, extract all in a temp folder, delete the file and zip it back… rename -> restart ST3 -> success.

Cheers
Diffi

0 Likes

#20

I just did a clean install of ST3 Build 3114 on a rMBP running El Capitan and this still happens, both with HTML and CSS files. Anyone has managed to fix this?

0 Likes

#21

dam hour i update my sublime haha, i don’t want to use atom or brackets :frowning: have a lot things on sublime,

1 Like

#22

Hi,

I live the same issue (2 year later sorry for the shovel) on the linux build 3114 and this post seem to be the most recent on this subject so I do the tricks by adding this line in my preferences.sublime-settings for open this pop-up on all alphabetic characters:

"auto_complete_triggers": [ {"selector": "text.html", "characters": "<abcdefghijklmnopqrstuvwxy"} ]

If you have found better since, I am listening.

0 Likes

#23

dev build 3120 contains some improvements regarding auto complete of CSS in HTML style attributes, in case it is related: https://github.com/sublimehq/Packages/pull/532

0 Likes

#24

It’s a start but with this new wave of html’s templates, my need concerne the content of style tags inside a dom-module element in the html documents.

0 Likes

#25

@lp177 see my new PR here: https://github.com/sublimehq/Packages/pull/586

you may want to change your user preferences file to include:

"auto_complete_selector": "meta.tag - (punctuation.definition.tag.begin - meta.tag.style.html), source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc",
0 Likes

#26

Hi,
I am facing the same issue. The autocomplete only appears when I have pressed the CTRL+SPACE key combination.

I am on the latest build of ST (3131) on Windows 10 x64. I also have https://packagecontrol.io/packages/CSS%20Extended%20Completions package installed.

My file type is CSS

Please note that I have already tried what @jmaker has said earlier, but it is still not working for me.
Can you please help me resolve this issue?

Thanks

0 Likes

#27

Seems like CSS Extended Completions causes this behavior, as it works out the box (no third party packages installed) in build 3131

0 Likes

CSS Autocompletion not working
#28

Hello guys for me problem solved
go to Preferences , Settings , in the user section just add
“auto_complete”: true
this line solve my problem.

1 Like

#29

I am facing the same CSS bug.

I have searched both locations
I can not find the file in my ST3, windows 10

0 Likes