如何在powershell中更改单个语法着色?

问题描述 投票:1回答:1

无论出于何种原因,在powershell的以下命令中,

Set-PSReadlineOption -TokenKind Comment -ForegroundColor Gray

冲刺后我看不到任何东西。 enter image description here

我猜是有些东西与颜色有关,我正在尝试改变它。关键似乎是选择正确的TokenKind,列出(但没有记录)here

为了看到破折号后的文字,我改变哪个TokenKind

windows powershell
1个回答
3
投票

通过实验找到答案。将其发布给遇到此问题的下一个人。 TokenKindParameter

Set-PSReadlineOption -TokenKind Parameter -ForegroundColor Yellow
© www.soinside.com 2019 - 2024. All rights reserved.