无论出于何种原因,在powershell的以下命令中,
Set-PSReadlineOption -TokenKind Comment -ForegroundColor Gray
我猜是有些东西与颜色有关,我正在尝试改变它。关键似乎是选择正确的TokenKind,列出(但没有记录)here。
为了看到破折号后的文字,我改变哪个TokenKind
?
通过实验找到答案。将其发布给遇到此问题的下一个人。 TokenKind
是Parameter
。
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor Yellow