Xcode 查找和替换 9.4.1 中缺少的预览 [英] Xcode Find And Replace Preview Missing in 9.4.1

查看:22
本文介绍了Xcode 查找和替换 9.4.1 中缺少的预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用查找和替换".这是我工作流程的一部分.使用 Xcode 8,我可以输入一个搜索词,然后只通过选择预览"来替换我想要的项目.该选项似乎在 Xcode 9.4.1 中消失了.

I use 'Find and Replace' fairly regularly. It's part of my workflow. With Xcode 8 I could enter a search term and then only replace the items I wanted by choosing 'Preview'. That option seems to have disappeared in Xcode 9.4.1.

这是以前版本 Xcode 的屏幕截图,因为我的系统上不再安装 Xcode 8,但它的基本思想相同.

Here is a screenshot of a previous version of Xcode as I no longer have Xcode 8 installed on my system, but it's the same basic idea.

现在预览"从我的 Xcode 版本中消失了.

Now that 'Preview' is gone from my version of Xcode.

如何恢复该功能?

我希望能够确保我正在替换正确的内容,并且我想在提交之前预览编辑.我已经看过这里,但没有为我工作.我尝试了我能想到的所有组合键,但仍然没有预览"选项.我无法想象我是唯一一个使用此功能的人.

I want the ability to make sure I'm replacing the right thing, and I want to preview the edit before committing. I already looked here, but it didn't work for me. I tried every key combination I could think of, and still no 'Preview' option. I can't imagine I'm the only one who uses this feature.

此功能是从 Xcode 9.4.1 中消失的,还是隐藏在其他地方?或者它被称为新的东西,我不知道如何找到它?

Is this feature gone from Xcode 9.4.1, or is it hidden somewhere else? Or maybe it's called something new and I don't know how to find it?

谢谢!

推荐答案

原来在 Xcode 9.4.1 中,我只需要在 VC 中右键单击项目,使用重构"选项即可.从那里,我可以看到可能的替换列表并从中进行选择.啊哈!

Turns out in Xcode 9.4.1, I just have to use the 'refactor' option from right-clicking the item from within the VC. From there, I can see a list of possible replacements and choose from there. Ah ha!

感谢这个回答帮助我指出正确的方向.

Thanks to this answer for helping point me in the right direction.

这篇关于Xcode 查找和替换 9.4.1 中缺少的预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆