Xcode 4 文件完整路径
如果我在 Xcode 中打开了任何文件并且我想知道该文件的完整路径,我该如何在 Xcode 4 中做到这一点?在 Xcode 3 中,我可以将鼠标悬停在文件名上并获取包含完整路径的工具提示。我还可以右键单击最顶部的文件名,然后弹出一个包含完整路径的窗口。这一切在 Xcode 4 中都消失了。
令人烦恼的是,当使用 Xcode 4 搜索时,它甚至没有在结果中显示文件的完整路径?!
我目前找到的唯一解决方案是打开“另存为”对话框并从那里获取路径!这绝对不是解决问题的办法。我缺少什么?
If I have any file open in Xcode and I would like to know the complete path to the file, how do I do that in Xcode 4? In Xcode 3 I could hover over the file name and get a tooltip with the complete path. I could also right-click a file name at the very top and get a pop-up window with the complete path. This is all gone in Xcode 4.
The annoyance is that when using the Xcode 4 search, it doesn't even show the complete path of the file in the results?!
The only solution I have currently found is to open the save as dialog and get the path from there! That definitely can't be the solution. What am I missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于不属于项目的文件,您可以使用“文件”菜单的“在 Finder 中显示”选项。
更新: Xcode 4.2 恢复了右键单击或按住命令单击标题栏中的文件名以获取包含完整路径的下拉菜单的功能。
For files that are not part of the project you can use the File menu's Show in Finder option.
Update: Xcode 4.2 restored the ability to right-click or command-click on the file's name in the title bar to get a drop-down with the full path.
显示文件检查器实用程序(通常位于我的设置主窗口的右侧,为此,请单击“查看”按钮菜单的最右侧按钮)。在导航器中单击您的文件,检查器将刷新信息。完整路径已公开,并且有一个按钮可打开包含封闭文件夹的新 Finder 窗口。
Show the file inspector utility (normally at the right hand side of the main window on my setup , to do that click the rightmost button of the "View" buttons menu). Click on your file in the navigator and the inspector will refresh with the information. Full path is disclosed and there is a button to open a new Finder window with the enclosing folder.