在IntelliJ中,我如何使用Shift + F1快捷键在浏览器中查看生成的文档?

huangapple go评论64阅读模式
英文:

In IntelliJ, how can I view the generated docs in the browser, using Shift + F1

问题

当我使用工具 | 生成 JavaDoc,针对一个类或项目时,我可以浏览到目录,并通过点击打开以 HTML 格式生成的文档。但是我无法找到一种方法,通过在 IntelliJ 中使用Shift + F1来打开 HTML 文档。我已经将目标目录添加到“项目结构 -> SDK -> 文档路径”中,但没有帮助。我想知道我漏掉了什么?

附注1:配置来自 Oracle URL 的官方 JavaDoc 不是问题,并且能够很好地工作。我正在尝试的是使用 Shift + F1 打开我生成的文档。

附注2:我在生成文档时选中了“在源路径中包括 JDK 和库源代码”以及“链接到 JDK 文档”选项,但这并没有帮助。

英文:

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 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.

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.

答案1

得分: 1

生成的 JavaDoc 文件夹需要在“项目结构”对话框中添加到模块的 路径 选项卡中:

在IntelliJ中,我如何使用Shift + F1快捷键在浏览器中查看生成的文档?

英文:

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

在IntelliJ中,我如何使用Shift + F1快捷键在浏览器中查看生成的文档?

huangapple
  • 本文由 发表于 2020年3月16日 23:51:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/60709137.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定