View sources of used Java classes in IntelliJ Idea

前端 未结 5 2044
借酒劲吻你
借酒劲吻你 2021-02-05 15:08

In visual studio development environment when you use a library if you have the related pdb you can dig into their sources during debug. I wonder is there any way to have this f

5条回答
  •  伪装坚强ぢ
    2021-02-05 15:46

    In my case, I had to add the JDK source files to the project as below.

    Go to Project Structure -> SDKs -> Sourcepath

    Use the Plus Sign on the right, and provide the path to your $JAVA_HOME/src.zip file.

提交回复
热议问题