是否可以在 Xcode 中禁用 Swift 文档? [英] Is it possible to disable Swift documentation in Xcode?

查看:50
本文介绍了是否可以在 Xcode 中禁用 Swift 文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用 Swift,所以我不需要 Xcode 中的文档.目前它只是与 Objective C 文档混淆.

I am not using Swift, so I don't need its documentation in Xcode. Currently it just messes with Objective C documentation.

是否可以在 Xcode 中禁用文档的 Swift 部分?

Is it possible to disable Swift section of documentation in Xcode?

推荐答案

文档只是一组 HTML 文件.如果已下载,您可以编辑 CSS 文件以完全隐藏 Swift 或 Objective-C 代码.

The documentation is just a set of HTML files. If it's downloaded, you can edit a CSS file to completely hide Swift or Objective-C code.

  1. 打开文档窗口.
  2. 选择编辑器">共享">在浏览器中打开"菜单.
  3. 复制打开的页面地址的对应部分:

/Users/XXX/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.XXX.docset/Contents/Resources/Documents/

  1. 切换到 Finder,然后使用前往">前往文件夹"菜单打开文件夹.

  1. Switch to Finder, and use "Go" > "Go to Folder" menu to open up the folder.

浏览到 Resources/XXXX/CSS 文件夹并编辑xcode5.css"文件.您应该添加以下任一块以隐藏 Swift 或 Objective-C:

Browse to Resources/XXXX/CSS folder and edit "xcode5.css" file. You should add either of these blocks to hide Swift or Objective-C:

div .Swift {
    display: none !important;
}

div .Objective-C {
    display: none !important;
}

  1. 重新启动 Xcode 并享受减少的混乱.

这篇关于是否可以在 Xcode 中禁用 Swift 文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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