当前位置:网站首页>Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)

Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)

2022-07-05 07:19:00 jiankang66

One 、 background

         Recently, I think in my work jar The specific implementation of package source code , But finding through idea Click in jar in , The implementation of the method cannot be shown , Show all /* compiled code */ , as follows , In this case, we cannot read the source code . At the same time, share later idea Common shortcut keys for .

  Two 、 Solution

         By clicking on file-setting-plugins, Search for Decompiler. Select it , restart idea, You can solve the problem .

          The end result is as follows , I'm through idea Viewed dubbo Source code , You can see , The specific implementation of the source code is shown .

        ctrl+ The left mouse button can enter jar Package view method source code .

3、 ... and 、 Common shortcut key

1、ctrl+alt+T Fast code generation Shortcut key

2、ctrl+N Find the class . Rapid positioning

3、ctrl+O Overrides the method of the parent class

4、ctrl+w Select the line contents step by step

5、ctrl+F2 Show outline method

6、ctrl+ Space There is no prompt after clicking , You can prompt again

7、ctrl+alt+b The specific implementation of the rapid positioning interface

8、ctrl+shift+U Font case

9、ctrl+shift+Z Counter cancellation

9、ctrl+R replace text

10、alter+ single click View the value of an object

11、ctrl+shift+F Global search

12、ctrl+shift+R Replace

13、ctrl+E List of recently accessed files

14、ctrl+shift+E List of recently edited files

15、ctrl+←→ Go to the previous word or the next word

Four 、 summary

         That's all idea see jar Package source code method and some shortcut keys , Record it here , I hope I can help you , If you think it's good , Welcome to wechat search java Basic notes , Relevant knowledge will be continuously updated later , Make progress together .

原网站

版权声明
本文为[jiankang66]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140557516345.html