Sublime Forum

Disable html completions in php

#1

Hey,

When I am editing PHP code and type “sel”, the autocompletion shows me <select> and sometimes when I don’t pay enough attention I accidently hit some of the completions that are undesired here.

Is there a way to disable html completion when I am in source.php except for when I am in string.quoted?

I tried searching on google and skipped through the docs but didn’t find anything that would help me. Maybe I’m just blind :wink:

I opened the menu entry called “Settings - Syntax specific” which created a file HTML.sublime-settings and i made it look like
{ "auto_complete_selector": "text.html.basic - source.php - embedding.php", }
but it didn’t help.

In general I’d like to have more control over autocompletion as there is so much in there I don’t need that keeps me from finding the things that i really want to have.

Any help appreciated.

0 Likes

#2

I’m guessing you are on build 3114 - try build 3120, there were some fixes in how PHP and HTML interact.

0 Likes

#3

Forgot to say: This is Build 3120

0 Likes

#4

what packages do you have installed? I can’t reproduce on stock 3120.

0 Likes

#5

Many :slight_smile: But that comment helped, I disabled the “HTML5” package, then they disappeared.

So they’re caused by that package… But I don’t want to disable the package. Can I change the behaviour without modifying the package directly?

0 Likes

#6

Took a look into that package.
The snippets i looked at were like

<scope>source.php,text.html</scope>

If there is no way to change the behaviour I will have to disable the package, don’t i?

0 Likes