英文:
VSCode run selection in power shell scripts has stopped working
问题
我在当前项目上已经使用了两年的VSCode,但是从昨天或前天开始,运行选定行功能(F8)在多行上停止工作了。如果我只高亮一个行,它可以工作,但是对于多行就不行了。还有其他人遇到过这个问题吗?有解决方法吗?
圈出的是F8命令。
由于通常与前一行(或行!)未运行有关,无法打印错误消息。
英文:
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
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 的详细信息如下:
英文:
.. 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.
The details of VSCode I am running is
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论