Where did the “Search in Project” context menu item go in Xcode 4?

試著忘記壹切 提交于 2019-12-10 19:30:03

问题


When you selected text in the code window and right-clicked on it, you would get a context menu with an option to "Search in Project" for the selected text. (Xcode 3.x)

Anyone knows how I can achieve the same in Xcode 4? Or a keyboard shortcut?

Now I select the text and wrestle my fingers in the following combination CMD-C, CMD-CTRL-F, CMD-V, RETURN. Feels a bit like playing the Playstation...

Cheers, Niels R.


回答1:


There doesn't seem to be a single keyboard shortcut, but one you might find useful is "Use Selection for Find" (Command+E). That is, you can select some text, and press Command+E, Command+Shift+F, Return.




回答2:


It's no longer in a menu option but is accessible by an icon. Look directly beneath the "Schemes" at the sequence of 7 small icons. The 3rd one over is a "search" icon. Click that icon and type in your project search text and press return.




回答3:


Just think it might be handy to see it at a glance:



来源:https://stackoverflow.com/questions/5323175/where-did-the-search-in-project-context-menu-item-go-in-xcode-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!