在IntelliJ中,如何使用Shift + F1在浏览器中查看生成的文档 [英] In IntelliJ, how can I view the generated docs in the browser, using Shift + F1

查看:131
本文介绍了在IntelliJ中,如何使用Shift + F1在浏览器中查看生成的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用工具|生成JavaDoc ,对于类或项目,我可以浏览到目录并通过单击生成的HTML格式的文档来打开它们.但是我无法找到使用 Shift + F1 从IntelliJ中打开HTML文档的方法.我将目标目录添加到项目结构-> SDK->文档路径",但这没有帮助.我想知道我在想什么?

When I use Tools | Generate JavaDoc, for a class or project, I can browse to the directory and open the generated documents in HTML format by clicking on them. But I cannot figure out a way to open the HTML doc, from the IntelliJ using Shift + F1. I added the destination directory to the "Project Structure -> SDKs -> Documentation Paths" but that did not help. I wonder what am I missing?

P.S.1从Oracle URL配置官方JavaDoc没问题,并且很吸引人,我想要做的是使用Shift + F1打开我生成的文档.

P.S.1 Configuring the official JavaDoc from Oracle URL is not a problem and works like a charm, What I am trying to do is to use Shift + F1 to open docs that I had generated.

PS2在生成文档时,我选择了"在源路径中包含JDK和库源"和"链接到JDK文档"选项,但这无济于事.

P.S.2 I check "Include JDK and library sources in sourcepath" and "Link to JDK documentation" options when I generate the docs, but that does not help.

推荐答案

需要在路径标签中的模块的项目结构"对话框中添加生成的JavaDoc文件夹:

Generated JavaDoc folder needs to be added in the Project Structure dialog for the module in the Paths tab:

这篇关于在IntelliJ中,如何使用Shift + F1在浏览器中查看生成的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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