簡體   English   中英

如何更改power shell編輯器的顏色,對於類型命令?

[英]How to change the color of power shell editor, for typed commands?

當我輸入一些命令時,它會變成黃色,這對我來說不是很明顯,我怎么能改變那個顏色呢? 在此輸入圖像描述

或者甚至更好,使用[console]::ForegroundColor = "Black" 此外,還有其他選擇,例如:

C:\WINDOWS\system32> $host.privatedata

ErrorForegroundColor    : Red
ErrorBackgroundColor    : Black
WarningForegroundColor  : Yellow
WarningBackgroundColor  : Black
DebugForegroundColor    : Yellow
DebugBackgroundColor    : Black
VerboseForegroundColor  : Yellow
VerboseBackgroundColor  : Black
ProgressForegroundColor : Yellow
ProgressBackgroundColor : DarkCyan

C:\WINDOWS\system32> $host.ui.RawUI

ForegroundColor       : Green
BackgroundColor       : Black
CursorPosition        : 0,64
WindowPosition        : 0,18
CursorSize            : 25
BufferSize            : 120,3000
WindowSize            : 120,50
MaxWindowSize         : 120,88
MaxPhysicalWindowSize : 265,88
KeyAvailable          : False
WindowTitle           : Administrator: Windows PowerShell

使用這些設置,您可以更改您的個人資料,以便每次啟動Powershell時都會應用這些設置。 更多關於

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM