如何在PyCharm中实现Eclipse式滚动条迷你地图标尺的精准行跳转?
PyCharm: Enable Direct Jump on Scrollbar Click (Like Eclipse's Minimap)
Absolutely, you can replicate that Eclipse-style scrollbar jump behavior in PyCharm—it's a built-in setting, no plugins needed! Here's how to turn it on:
- Open PyCharm's Settings: Use the shortcut
Ctrl+Alt+S(Windows/Linux) orCmd+,(Mac), or go to File > Settings (Windows/Linux) / PyCharm > Settings (Mac). - Navigate to Editor > General > Appearance in the settings sidebar.
- Look for the checkbox labeled "Click on vertical scrollbar to jump to the clicked position" and check it.
- Hit Apply then OK to save the change.
Once this is enabled, clicking any spot on the vertical scrollbar will instantly jump your editor to the corresponding line of code—exactly the behavior you're used to in Eclipse.
If you want an extra touch similar to Eclipse's minimap preview, you can also check the "Show code preview on scroll hover" option in the same menu. This will show a small preview of the code when you hover over the scrollbar, but the core jump functionality is the first setting we mentioned.
内容的提问来源于stack exchange,提问作者Sentice
相关产品推荐
相关产品推荐

