【发布时间】:2018-10-21 01:38:59
【问题描述】:
在 VSCode 中,我想将当前文件名传递给集成终端 有一个设置:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
如何添加当前文件名,例如这会很棒:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe %CurrentFileName%",
谢谢。
【问题讨论】:
-
如果您想使用文件名作为 command 的参数而不是整个终端,请参阅How to refer to current file from Integrated Terminal in Visual Studio Code。
标签: shell terminal visual-studio-code