VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

huangapple go评论51阅读模式
英文:

VSCode run selection in power shell scripts has stopped working

问题

我在当前项目上已经使用了两年的VSCode,但是从昨天或前天开始,运行选定行功能(F8)在多行上停止工作了。如果我只高亮一个行,它可以工作,但是对于多行就不行了。还有其他人遇到过这个问题吗?有解决方法吗?

圈出的是F8命令。

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

由于通常与前一行(或行!)未运行有关,无法打印错误消息。

英文:

I have been using VSCode for 2 years on a current project, but from yesterday or the day before the run selected rows feature (F8) has stopped working on multiple rows. If I highlight a single row it works but not multiple. Anyone else come across this and is there a workaround please ?

Circled is the command F8

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

Its not possible to print the error messages as they are usually to do with the previous row (or line!) not being run.

答案1

得分: 0

我找到了问题所在。微软正在更新 Visual Studio Code (VSC),自圣诞以来的更新之一设置了列选择选项。原始问题中圈出的 F8 命令(运行所选行)是标准操作,据我所知。以下是一个屏幕截图,显示了取消选择列模式选项后的选择菜单。取消选择此选项后,您可以选择一系列行并仅运行这些行,就像以前一样。

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

我正在运行的 VSCode 的详细信息如下:

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

英文:

.. So I have found the issue. MS are current updating VSC and one of the updates since Christmas had set a column selection option on. The circled F8 command (run selected lines ) in the original question is standard AFAICT . Here is a screen shot of the selection menu with the column mode option unset. Once this is unselected you can select a series of lines and run just those lines, as before.

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

The details of VSCode I am running is

VSCode中运行PowerShell脚本的选取部分功能已经停止工作。

huangapple
  • 本文由 发表于 2023年2月16日 18:50:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75471191.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定