IDEA practical plug-in CodeGlance - display code thumbnails

Application scenarios

When the total number of lines of code reaches a certain scale, the efficiency of positioning by dragging and dropping the scroll bar with the mouse is relatively low. At this time, the code thumbnails can be displayed through the plug-in CodeGlance.

method effect

Insert image description here

Review

Personally, I think that the practicality is average in most cases, because... a single Java class file is usually not too long. If it is too long, it means that there may be certain problems in the design of the class itself, such as the responsibilities are not single and it is relatively heavy.

In addition, if there are many business methods, use #region annotation for segmentation.

In Java files, the width of each method is basically the same. It is not so clear from the thumbnail. Unlike front-end development such as Vue, the three areas of template area/method area/style area are clearly distinguished and need to be switched frequently.

The thumbnail display area also takes up part of the screen space.

Therefore, this plug-in depends on the specific situation of the system.

Guess you like

Origin blog.csdn.net/seawaving/article/details/122527193