You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Emmet: does not work in php's heredoc nor nowdoc #29320
Does not work in simply echo steps too, nor in variables... Maybe we should consider changing the header, because once we are in php code, we can't do anything.
I am guessing (guessing because I don't know much about php) that in php, the TESTHEREDOC part is considered as a string and so you don't get any suggestions.
To get around this either update the above setting and set the strings part to true or hit Ctrl+Space to manually trigger suggestions.
Sample applies to echo statements or variables where you are typing inside quotes and so the context is that of a string.
Activity
jens1o commentedon Jun 23, 2017
VSCode Bot (@vscodebot)[bot] Don't make me angry. This is meant for Ramya Rao (@ramya-rao-a)
jens1o commentedon Jun 23, 2017
Does not work in simply echo steps too, nor in variables... Maybe we should consider changing the header, because once we are in php code, we can't do anything.
jens1o commentedon Jun 23, 2017
Pretty funny: It works when it the result would be invalid php.
For example:

Goes to

ramya-rao-a commentedon Jun 23, 2017
By default, suggestions are not prompted inside strings and comments. This is a VS Code feature and can be controlled in the below setting
I am guessing (guessing because I don't know much about php) that in php, the TESTHEREDOC part is considered as a string and so you don't get any suggestions.
To get around this either update the above setting and set the
stringspart totrueor hitCtrl+Spaceto manually trigger suggestions.Sample applies to echo statements or variables where you are typing inside quotes and so the context is that of a string.
ramya-rao-a commentedon Jun 23, 2017
Regardless, with #28286 (comment) the emmet suggestions will no longer appear until a php extension supports it
The
Emmet: Expand Abbreviationwill continue to work