是否可以在 Visual Studio Code 中更改新集成终端窗口的工作目录?
我已在代码中打开该文件夹/path/to/project,因此当我打开新的终端窗口时,它会在该文件夹中启动。我希望打开终端,/path/to/project/app这样我就不必每次都cd到该文件夹。可以在 中配置吗settings.json?
如果我在powershell中运行命令:
C:\Get-Website
Run Code Online (Sandbox Code Playgroud)
它输出
Name ID State Physical Path Bindings
---- -- ----- ------------- --------
Default Web Site 1 %SystemDrive%\inetpub\wwwroot http *:80:
net.tcp 808:*
net.pipe *
net.msmq localhost
msmq.formatname
localhost
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试只选择绑定:
C:\Get-Website | where {$_.Name -eq "Default Web Site"} | select Bindings
Run Code Online (Sandbox Code Playgroud)
它返回:
bindings : Microsoft.IIs.PowerShell.Framework.ConfigurationElement
Run Code Online (Sandbox Code Playgroud)
如何将此对象的内容提取为有用的格式?