windows - 使用 Stop-Transcript 仅记录输入

标签 windows powershell visual-studio-code

我想使用“Start-Transcript”命令仅记录Windows中VS-Code终端中的输入。目前它记录输入和输出。还有没有更好的方法来记录 VS code 终端中的输入?

最佳答案

使用Get-History获取当前 session 中提交的所有命令行的列表。

(Get-History).CommandLine 仅以字符串形式输出命令行。

关于windows - 使用 Stop-Transcript 仅记录输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70115313/

相关文章:

windows - 检查 Inno Setup 中是否存在指向特定目标的快捷方式

windows - 通过cmd设置PATH环境变量

powershell - Powershell脚本列出用户所属的分发列表

powershell - -替换运算符捕获组为我提供了捕获的子字符串的倒数

visual-studio-code - 在 Windows 10 上按 Ctrl+Shift+P 时 VS Code 未收到 "P"

windows - mkdir 返回 The syntax of the command is incorrect on windows

java - EC2 Windows - 获取管理员密码

电源外壳 : The given path's format is not supported

javascript - VSCode 高级代码片段转换

python - 使用 Python 在 Visual Studio Code 中意外缩进