powershell - 有没有办法在 VSCode/PowerShell 中格式化区域折叠方式

标签 powershell visual-studio-code

有没有办法在 VS Code 中格式化区域折叠方式?

目前,PowerShell 5.1 折叠代码如下所示:

#region Options
#endregion Options

期望的行为

#region Options...

最佳答案

PowerShell扩展提供了一个设置来控制它,并且默认情况下启用:

"powershell.codeFolding.showLastLine": true

Shows the last line of a folded section similar to the default VS Code folding style. When disabled, the entire folded region is hidden.

关于powershell - 有没有办法在 VSCode/PowerShell 中格式化区域折叠方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75748970/

相关文章:

python - 使用 conda 环境在 VS code 中部署 Azure Functions

visual-studio-code - Omnisharp无法正确处理vscode中的默认点网核心3应用

powershell - 是否可以打印变量名?

php - 当我在 Blade 类型页面中的 <?php ?> 之间编码时,如何使 VSCode 识别 php 片段?

visual-studio-code - VSCode 中的 LaTeX 分数片段

powershell - 具有一个可选参数,需要另一个参数

javascript - 如何在函数后编码 '(' 时关闭 VS Code 上的 Intellisense 自动完成

Powershell帮助,如果进程存在,停止它,否则启动服务?

powershell - Azure Batch 容器配置中的 Azure 容器注册表的 AD 服务主体?

powershell - 如果我没有收到 PowerShell 会保留多少作业输出?