'Change icon and icon color automatically based on command in VS Code

I just wondering if in VS Code has this kind of customization whereas when we execute a command in terminal then the color and the icon will change accordingly. for example as in picture shown, when I run ng serve and the title of the terminal tab will be ng and the icon and color will change automatically (in this picture, I manually change it).

what I found from my research (in google) is just terminal profile and it's not answering my curiosity.

description



Solution 1:[1]

You can create a terminal profile and set the property overrideName to true, you can set a color if you like.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rioV8