- 1 year ago
How to change the completion/prediction hint color in PowerShell core in windows terminal?
To change the completion/prediction hint color in PowerShell Core in Windows Terminal, you can modify the PowerShell Core
profile in the Windows Terminal settings.
Here are the steps to change the color:
Open Windows Terminal and click the drop-down arrow to open the dropdown menu.
Click
Settings
to open the settings file in your default text editor.Scroll down to the
profiles
section and locate thePowerShell Core
profile.Add the following line to the
PowerShell Core
profile:json"suggestionStyle": "emphasis"
This sets the style of the prediction hint to "emphasis".
Save the settings file and close the text editor.
Restart Windows Terminal to see the changes take effect.
You can also customize the color by adding the following line to the colorScheme
section of the settings file:
json"suggestionForeground": "#00FF00"
Replace #00FF00
with the color code of your choice.
Note that the exact steps and syntax may vary depending on the version of Windows Terminal and PowerShell Core you are using.