英文:
"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
The replacement selections dialog is on the upper right . I have put in 'space' for the find and nothing/empty for the replacement.
How to replace all at one swoop? Hovering for a while gives the nominal answer:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论