How to use code highlight in .inc files in VS code as PHP?

.inc is used in various languages. In my case, I use .inc extension in PHP files.

By Default, my vs code editor is not highligthing any code within .inc extension files.

To enable, the highlight option I have done the following steps.

Text Editor Settings

  1. Go to File > Preferences > Settings > Text Editor > Files > Add Item
  2. Add entry *.inc > php
  3. Save

My current VS Code version is 1.74.1

Steps to set customized external terminal in VS Code

Step 1:

Go to File -> Preferences -> User settings

Step 2:

Add one of the following line based on the environment to settings.json file

// to run on OS X
"terminal.external.osxExec": ""
// to run on linux
"terminal.external.linuxExec": "xterm"
// to run windows
"terminal.external.windowsExec": "%COMSPEC%"

For example, if we want to set Git Bash as an external terminal. We can achieve it by providing Git bash exe URL as follows

"terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe"

Restart the VS Code instance to apply the settings.

Keyboard Shortcut to open external terminal in VS Code is Ctrl + Shift + C

Happy Coding 🙂