假设我有以下代码:
But I change my mind and I don't want to call it plan
anymore. I want to call it schedule
. So, because VS Code is so amazing and I'm so lazy, I press Ctrl + D hoping for VS Code to change the name respecting the case. But suddenly:
有没有办法告诉 VS Code 尊重这种情况?
在 1.37(2019 年 7 月)中,可以通过查找/替换(现在可以通过保留大小写来替换)。
-
问题 9798 https://github.com/Microsoft/vscode/issues/9798已实施PR 78003 https://github.com/microsoft/vscode/pull/78003.
-
问题 78397 https://github.com/microsoft/vscode/issues/78397已实施PR 79111 https://github.com/microsoft/vscode/pull/79111(仅限 1.38)search/代替。
From 1.37 发行说明 https://code.visualstudio.com/updates/v1_37#_preserve-case-in-find-and-replace:
现在,您可以在编辑器的“查找”小部件中进行替换时保留大小写。当编辑器的替换输入框中的“保留大小写”选项(AB 按钮)打开时,该功能就会打开。
目前 VS Code 仅支持保留全大写、全小写和标题大小写。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)