如何在 Xcode 中的选择中查找和替换? [英] How can I find and replace inside a selection in Xcode?

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

问题描述

在 Xcode <4、你可以按住选项"键,全部替换"按钮会变成在选择中替换".从 Xcode 4 开始,这没有任何作用.有谁知道是否有新的方法可以做到这一点,或者是提交错误的时间?

In Xcode < 4, you could hold the "option" key, and the "Replace All" button would change to "Replace in Selection". As of Xcode 4, this does nothing. Anyone know if there's a new way to do it, or is it bug filing time?

推荐答案

UPDATE:这似乎现在有效,至少在 Xcode 4.4.1 中.当查找/替换栏出现在编辑器的顶部时,按住键盘上的选项键会导致在选择中替换"而不是全部替换".

UPDATE: This appears to be working now, at least in Xcode 4.4.1. When the find/replace bar appears at the top of the editor, holding down the option key on the keyboard causes "Replace in Selection" to appear in lieu of "Replace All."

我很高兴,因为这是一个令人讨厌的遗漏.

I'm glad, because this was an ANNOYING omission.

这篇关于如何在 Xcode 中的选择中查找和替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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