如何在 PowerShell 窗口中更改两个引号之间的文本颜色

irk*_*rce 1 powershell settings

我无法更改两个引号之间的文本颜色(现在它的颜色是暗蓝色)。我可以在哪里设置此设置或者我必须执行哪个命令?

样本

mkl*_*nt0 7

PSReadline v1.x(随Windows 10 及更高版本上的Windows PowerShell v5.1 一起提供):

Set-PSReadlineOption -TokenKind String -ForegroundColor Green
Run Code Online (Sandbox Code Playgroud)

PSReadline v2.x(随PowerShell (Core) v6.1+ 一起提供):

Set-PSReadLineOption -Colors @{ String = 'Green' }
Run Code Online (Sandbox Code Playgroud)

笔记:

有关更多信息,请参阅此答案Set-PSReadlineOption文档。