Sublime Forum

ST4 - PHP autocompletion (workflow)

#1

Hi!

First of all, thanks for making ST4. I’ve been a ST user for 7 years now and I still really like it.
I bought the license immediately (especially because of the ARM64 support, thanks for that, much appriciated!)

However, it does break my workflow when writing PHP quite significantly.
Most notably, it often opens an intrusive autocomplete window where it isn’t useful:

For reference, here’s ST3 with a much better behaviour:

This probably isn’t a good default and I’d like to have the old behaviour back :smile:

Tobias

1 Like

How to stop autocomplete in ST4 on semicolon
#2

Does setting the setting auto_complete_when_likely to true in your user preferences make any difference ?

0 Likes

#3

No, neither true or false change this behaviour.

0 Likes

#4

Does it happen in safe mode?

Just tried to repro on Windows with vanilla setup. Don’t see auto-completion panel after semicolon.

Also completing strlen adds strlen(string) to buffer the first time. The bug I see it is again prefering completions from buffer, which happens when typing strlen a second time.

Animation

Maybe auto_complete_selector malformed or ; added to auto_complete_trigger?

You could query those for the active view by running view.settings().get("auto_complete_selector") in ST’s console.

0 Likes

#5

Not sure what’t going on with those if, do, … snippets.

But I guess we don’t have to autocomplete functions in string and comment at least.

0 Likes