Is it inconvenient to view the source code? I have a weapon

wrote
Are you still worried about looking at complicated source code? Then this article may be worth your two minutes to read

  In the process of development, sometimes we need to study the source code. It is a good habit to check the source code, which can help us learn a lot of things. For example, JDK can help us understand the application of many design patterns in actual development, or android Developers, the source code is even more essential. When we look at the code, there will always be various inconveniences. Today, I will share with you a tool for viewing source code files under the Windows platform. I first heard that Still from Teacher Zhang Linghua, I fell in love with this tool after using it.

    Today's protagonist is Source Insight. It is a program editor and code browser for project development. Source Insight analyzes your source code and maintains its own symbol database dynamically as you work, automatically showing you useful contextual information. Its power lies not only in editable source code, but also in associating and finding variables and classes in the code. For example, in the Java language, you can clearly see the member variables and methods in a class, and source insight also provides a preview of the class. For example, if there is a class in the source code, you can go to that class to view the source code.

     Take a look at the preview image below

Isn't it very clear, it is very convenient to look at the source code now.

Install  

This software is actually not free. It needs an activation code. You can play it freely. I will not make any explanation. Here is a download address.

click here

An additional registration code is available: SI3US-241109-94280

use 

Of course, source insight is only to help you view the source code. You need to download some code yourself. Take the JDK source code as an example today. Many people are asking where the source code of jdk is. Well, the source code is in your computer. In the jdk installation directory, you will find a compressed package, src.zip is the jdk source code.

     Well, now find a place you like, create a folder, such as JDK, and extract the source code to this folder.

     Now open source insight and click project-->new project

     After filling in the project name and the location you want to save, confirm and the following dialog box will appear.

In the selected area, fill in the folder where you just unzipped the source code. . . continue OK

Locate your code, select Add Tree here, you're done, click close, and now you can freely enter the class you want to view in the upper right, which is very convenient.

     Looking at the source code, I personally think it is a very good study habit, and you can learn a lot from it. Why use JDK as an example, because the source code of JDK is very valuable, which involves the application of many design patterns, typical java The decorator pattern is very well applied in IO. I also learned this way. In short, I hope it will help you in front of the screen.

Original link: click here

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326535901&siteId=291194637