In my Sublime Text 2 Autocomplete is not working in a php file where there is no closing tag(?>
) but it works when I give the closing tag.
As it is a good practice to avoid closing tag for getting rid of accidental spaces or other newline characters at the end of file, it is better if I don't use the closing tag.
Does anyone have solutions?
In your sublime User/Preferences.sublime-settings file add:
{
"auto_complete_selector": "source, text",
}
This will enable auto-complete even when there is no closing PHP tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With