打开IDEA设置Settings,选择Plugins,搜索CodeGlance
IDEA代码缩略图插件CodeGlance-小白菜博客
点击Install,安装完成后重启即可。
效果如下: