Sublime Forum

Bug or not?

#1

Hello,

I’m not sure if it is a bug or a feature, but it is annoying :smile:

When I type $i in a PHP file the autocomplete is showing a list of snippets, after I type ‘=’ ST2 is automatically inserting the highlighted snippet. Is it possible to make ST2 only insert snippets on Enter?

I am using a german keyboard layout, so to type ‘=’ I have to use the key combination SHIFT+0.

Thanks.

0 Likes

#2

Do you have any plugins installed such as SublimeCodeIntel? That happens to me sometimes.

0 Likes

#3

hmm, yes I have SublimeCodeIntel installed.
I tried it without SublimeCodeIntel, now if I type $i the autocomplete is not automatically shown, but on CTRL+Space.
When I then type ‘=’ the same happens.

It would be create if there was an option, so that the snippet is only inserted on Enter key.

0 Likes

#4

ok I solved it by adding this keybinding:

{ "keys": "="], "command": "hide_auto_complete", "context":
	
		{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
	]
}
0 Likes