从停靠菜单中删除 xcode 最近的项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9672393/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:18:36  来源:igfitidea点击:

remove xcode recent projects from dock menu

xcodexcode4

提问by marcprux

I would like to remove from Mac OS-X taskbar (Dock) the XCode's recent project menu items.
Everywhere I am searching it says the File->Open Recent->Clear Menuit will clear, but not.
It doesn't clear from Dock, it clears from inside the XCodeRecent menu.
I believe I should dig somewhere is OS filesystem, but I don't know where.

我想从 Mac OS-X 任务栏 (Dock) 中删除 XCode 最近的项目菜单项。
我搜索的每个地方都说File->Open Recent->Clear Menu它会清除,但不会。
它不会从 Dock 清除,而是从“XCode最近”菜单中清除。
我相信我应该在某个地方挖掘 OS 文件系统,但我不知道在哪里。

It was an XCode 4.2intalled, I did a complete uninstall and installed version 4.3.
But I couldn't clear the Dock's projects menu at version 4.3 either!

这是一个XCode 4.2安装程序,我完全卸载并安装了 4.3 版。
但是我也无法在 4.3 版中清除 Dock 的项目菜单!

回答by marcprux

Here's what works for me:

以下是对我有用的内容:

  1. Launch Xcode
  2. Select File->Open Recent->Clear Menu
  3. Right-click the Xcode icon and select "Show All Windows". You should now see only your current document in the recents list at the bottom
  4. Quit Xcode.
    The recents list should now only be populated with your single current project.
  1. 启动 Xcode
  2. 选择 File->Open Recent->Clear Menu
  3. 右键单击 Xcode 图标并选择“显示所有 Windows”。您现在应该只能在底部的最近列表中看到您当前的文档
  4. 退出 Xcode。
    最近的列表现在应该只填充您当前的单个项目。

回答by fabb

  1. Start Xcode
  2. In Menu: File -> Open Recent -> Clear Menu
  3. Close Xcode
  4. Remove Xcode from Dock
  5. Reboot
  1. 启动Xcode
  2. 在菜单中:文件 -> 打开最近 -> 清除菜单
  3. 关闭 Xcode
  4. 从 Dock 中删除 Xcode
  5. 重启

回答by Hoang Phan

Turned out that all you need to do is:

原来你需要做的就是:

  1. Clear Recent Menu with Xcode
  2. killall Dock
  1. 使用 Xcode 清除最近的菜单
  2. 基尔码头

回答by Adamontherun

Select File->Open Recent->Clear Menu

选择文件->打开最近使用->清除菜单

Remove Xcode from the dock

从 Dock 中移除 Xcode

Re-add Xcode to the dock

将 Xcode 重新添加到 Dock

回答by Nicolas Miari

Warning:This solution will wipethe passwords of all your developer accounts in Xcode (Xcode > Preferences > Accounts); If you apply this method, you will have to re-enter them afterwards.

警告:此解决方案将擦除Xcode 中所有开发者帐户的密码(Xcode > Preferences > Accounts);如果您应用此方法,则必须在之后重新输入它们。



This is what worked for me in El Capitan / Xcode 7. In Terminal:

这就是在 El Capitan / Xcode 7 中对我有用的方法。在终端中:

% defaults delete com.apple.dt.Xcode
% killall Dock

(Source: https://simon.heimlicher.com/articles/2011/07/26/disable-recent-items)

(来源:https: //simon.heimlicher.com/articles/2011/07/26/disable-recent-items

Strangely, the recommended command:

奇怪的是,推荐的命令:

% defaults delete com.apple.dt.Xcode RecentDocuments

...gives the message:

...给出信息:

Domain (com.apple.dt.Xcode) not found. Defaults have not been changed.

未找到域 (com.apple.dt.Xcode)。默认值未更改。

...so I removed the RecentDocumentspart and decided to go nuclear. Haven't checked what else is nuked (other than the passwords mentioned above), so use at your own risk.

...所以我删除了RecentDocuments部分并决定去核。还没有检查还有什么是 nuked(除了上面提到的密码),所以使用风险自负