VS Code 现在使未使用的变量/导入变灰。有没有办法改变颜色?由于灰色与我使用的主题冲突。
我使用的主题(蓝图)对对象键使用相同的颜色。
我创建了一个随机密码生成器,我需要将所有10个输出Out-File转换为.txt文件
但我现在只有1行输出.
for ($i=1; $i -le 10; $i++){
$caps = [char[]] "ABCDEFGHJKMNPQRSTUVWXY"
$lows = [char[]] "abcdefghjkmnpqrstuvwxy"
$nums = [char[]] "2346789"
$spl = [char[]] "!@#$%^&*?+"
$first = $lows | Get-Random -count 1;
$second = $caps | Get-Random -count 1;
$third = $nums | Get-Random -count 1;
$forth = $lows | Get-Random -count 1;
$fifth = $spl | Get-Random -count 1;
$sixth = $caps | Get-Random -count 1;
$pwd = [string](@($first) + @($second) + @($third) + @($forth) + @($fifth) + @($sixth))
Write-Host …Run Code Online (Sandbox Code Playgroud)