Xcode 4 类似右键单击在项目中查找之类的东西吗?
在 Xcode 3 中,我可以右键单击代码中的某些文本,选择“在项目中查找”,然后就可以了。
Xcode 4 中是否有类似的功能,我可以在其中搜索某些内容而无需输入内容?
编辑:澄清一下,我关心的是避免输入我正在搜索的内容。
换句话说,假设我有名为
methodWithReallyLongNameVersionA
和
methodWithReallyLongNameVersionB
的方法,如果能够通过右键单击搜索来搜索第一个方法,而无需复制和粘贴或键入整个内容,那就太好了。这在 XCode 中是可能的3.
In Xcode 3, I could right click on some text in my code, select find in project, and it would.
Is there anything like that in Xcode 4, where I can search for something without typing it in?
EDIT: to clarify, my concern is to avoid having to enter whatever I am searching for.
In other words, suppose I have methods called
methodWithReallyLongNameVersionA
and
methodWithReallyLongNameVersionB
It would be nice to be able to search for the first one via a right click search, without having to copy and paste or to type the whole thing in. This was possible in XCode 3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我创建了一个自定义查找范围,然后使用该查找范围来搜索项目文件夹中的所有内容。
创建查找范围,如下所示:
在将来的搜索中使用此查找范围。
I created a custom find scope and then used that find scope to search all within a project folder.
Create find scope as follows:
Use this find scope in future searches.
Command + Shift + F 将搜索您的工作区。
Command + Shift + F will search your workspace.
当我问这个问题时,答案是“不”。不过,苹果现在已经恢复了这一功能。右键单击相关文本,然后从下拉菜单中选择“在工作区中查找选定文本”。
At the time I asked this question, the answer was "no." However, Apple has now restored this functionality. Right click on the text in question, then select "find selected text in workspace" from the drop-down menu.