I'm using .inc files in vscode, but I find that vscode does not support .inc files' highlight.Does vscode support inc file syntax highlighting?
.inc
files are used in multiple languages; what language are you using them in?
You can tell VSCode to apply language-specific syntax highlighting by editing the settings.json
(File > Preferences > Settings) by adding the file extension to the highlighting category.
For example, to highlight .inc
files as PHP,
{
"files.associations": { "*.inc": "php"}
}
See this link for more details.
version : 1.64.2 File > Preferences > Settings
2018 Update - Visual Studio Code 1.24.1
Its;
File > Preferences > Settings
You will get a dual pane as below ;
Default User Settings || User Settings
"files.associations": {}
Copy that over to the User Settings Pane ( right pane ) and paste at the bottom ( before the closing parentheses );
... || User Settings
"files.associations": {
"*.inc": "php"
}
} // closing parentheses
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