1

I had to rename all my .html to .php files in order to be able to do a little bit of php code in them. But now when I'm writing html I lost all the 'hint suggestion' code for example: like when you open up <div> it will automatically type a </div> (closure) tag behind it. Same when inserting an image and going '../images/' it would help me locate the path with a dropdown.

How can I get these back in a .php file extension enviroment?

Zanic L3
  • 1,028
  • 1
  • 16
  • 28
  • Does this answer your question? [Is there a way to make Visual Studio Code recognize HTML syntax in PHP files](https://stackoverflow.com/questions/45947972/is-there-a-way-to-make-visual-studio-code-recognize-html-syntax-in-php-files) – equiman Feb 18 '21 at 13:20

2 Answers2

1

To solve this problem I used this extension in vscode: vscode-intelephense-client.

Raffon
  • 133
  • 10
0

This feature is not supported natively by VSCode. There is an issue currently open for that, check this out https://github.com/Microsoft/vscode/issues/1751.

You have to use an external plugin such as: https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client

Dharman
  • 30,962
  • 25
  • 85
  • 135
ddon-90
  • 2,816
  • 1
  • 20
  • 29