简体   繁体   English

如何通过 CodeSense 在 Xcode 中显示文档?

[英]How can I display documentation in Xcode via CodeSense?

I am Java developer and would like to know how I can get the equivalent of a JavaDoc in Xcode when CodeSense is doing its auto-complete?我是 Java 开发人员,想知道当 CodeSense 进行自动完成时,如何在 Xcode 中获得等效的 JavaDoc? If I hit the ESC button I can get a list of methods etc. but it does not show me the descriptions of what the methods do.如果我点击 ESC 按钮,我可以获得方法列表等,但它没有显示方法的描述。

I am new to xcode and mac. 我是xcode和mac的新手。 Bring your mouse over the method name and press alt + left mouse click to see help. 将鼠标移到方法名称上,然后按alt +鼠标左键查看帮助。 To see full help press alt + double mouse left click . 要查看完整帮助,请按alt +双击鼠标左键

It's not quite the same, but the close equivalent is Quick Help, accessible from the Help Menu. 它并不完全相同,但可以通过“帮助”菜单访问“快速帮助”。 It's a floating palette that dynamically shows a quick documentation for the method or class at your cursor position. 它是一个浮动调色板,可以动态显示光标位置的方法或类的快速文档。

Just to add to the topic, on Xcode 13 you can invoke quick help by using:只是为了添加主题,在 Xcode 13 上,您可以使用以下方法调用快速帮助:

⌥ (option) + mouse click 

On any method, function, structure and etc...在任何方法上,function,结构等...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM