“Replace All” 在使用 “Replace in Selection” 功能时不起作用于 Visual Studio Code。

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

"Replace All" does nothing when using the "Replace in Selection" feature in Visual Studio Code

问题

替换选定部分是一个非常困难的过程 - 而且显然根本不起作用。要使“替换选定”可用,我们需要:

  • 高亮显示该区域
  • 按下 Alt-Cmd-F 找到

然后我们可以尝试替换选定内容:

  • 按下 Alt-Cmd-L

替换选项对话框位于右上方。我已经输入了“空格”以进行查找,替换部分留空/为空。

如何一次替换全部?悬停一会会得到答案:

但 CMD-Enter 什么也不做。实际上,Enter 也没用。这个“选定中查找”无效吗?

英文:

Replacing in selection is a crazy difficult process - and it apparently does not even work. Getting to the point of even having Replace in Selection enabled we need to:

  • highlight the area
  • Hit Find by Alt-Cmd-F

Then we can try to do replace in selection by:

  • Hit Alt-Cmd-L

“Replace All” 在使用 “Replace in Selection” 功能时不起作用于 Visual Studio Code。

The replacement selections dialog is on the upper right . I have put in 'space' for the find and nothing/empty for the replacement.

“Replace All” 在使用 “Replace in Selection” 功能时不起作用于 Visual Studio Code。

How to replace all at one swoop? Hovering for a while gives the nominal answer:

“Replace All” 在使用 “Replace in Selection” 功能时不起作用于 Visual Studio Code。

But CMD-Enter does *nothing. Actually ENTER does nothing either. This Find in Selection is inoperative??

答案1

得分: 0

有一个我通过反复试验找到的额外步骤:我们需要切换到“替换”字段,然后按下CMD-ENTER。

整个过程相当难以置信,对于一个核心/基本的编辑功能来说,这么繁琐。

英文:

There is an additional step I found by trial and error: we need to tab to the Replace field and then hit CMD-ENTER.

This whole process is rather hard to believe about how cumbersome to do for a core/essential editing capbility.

huangapple
  • 本文由 发表于 2023年5月11日 12:13:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76224107.html
匿名

发表评论

匿名网友

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

确定