View sources of used Java classes in IntelliJ Idea

前端 未结 5 2045
借酒劲吻你
借酒劲吻你 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:58

    Go toImplementation(s)

    No one suggested the simple route with a context-menu:

    1. import java.util.DesiredClass
    2. select this import statement
    3. right click -> Go to -> Implementation(s)

    Done! The source code of the DesiredClass opens in a new tab.

    This also works with selected class name in the body of your code.

提交回复
热议问题