[英]Javascript embedded in Java - How can I go-to-declaration? (Ctrl+B) (Nashorn) (IntelliJ)
[英]Intellij: Javadoc I can't see description of the methods, class in java documentation after ctrl+b
您需要打開File | Project Structure | SDKs
File | Project Structure | SDKs
File | Project Structure | SDKs
, go 到Sourcepath
,並附上這個 JDK 的源代碼文件(通常命名為 src.zip)。 在此處查看詳細步驟/圖像: https://mkyong.com/java/how-to-attach-jdk-source-code-to-intellij-idea/
源代碼文件 (src.zip) 通常來自您下載的 JDK 1中的$JAVA_HOME/lib/src.zip
和$JAVA_HOME/src.zip
。
另一種更簡單的方法是 go 到File | Project Structure | SDKs
File | Project Structure | SDKs
File | Project Structure | SDKs
,點擊+
圖標下載一個JDK,默認會配置sourcepath。
@MüseyibƏləkbər 提到的文檔路徑用於快速文檔彈出窗口。 參見https://www.jetbrains.com/help/idea/sdk.html#configure-external-documentation
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.