Sublime Forum

[BUG] Autocomplete Selector does not show up

#1

Hi guys,

The problem I have is about my autocomplete selector popup. Last week, at first time everything works fine. For example, if I type “php”, a series of suggestions will be showed on the pop up window and i can just choose whichever I want. However, I have no idea why, this week when come back to use sublime, the pop up window never shows up anymore. Though the autocomplete using “tab” still works.
I have searched tons of solutions on Internet but either they does not work or hard for me to understand.
Also I removed most of my autocomplete packages and even only SublimeCodeIntel left will not work.
So sad now lol

0 Likes

#2

I have no idea why but looks like something wrong with default “auto_complete_triggers” setting which is

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

So I added the following lines to my user setting [command + ,]:
> “auto_complete_triggers”:
> [
> {
> “characters”: “1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<”,
> “selector”: “text.html”
> },
> {
> “characters”: “1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<”,
> “selector”: “text.xml”
> },
> {
> “characters”: “1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<”,
> “selector”: “text.php”
> },
> {
> “characters”: “1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<”,
> “selector”: “text.css”
> },
> {
> “characters”: “1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<”,
> “selector”: “text.js”
> }
> ],

Now my autocomplete selector works again!

Credit to 虾米视觉
From: https://segmentfault.com/q/1010000000474293

0 Likes