问题
I would prefer to always see the scroll-bars in Sublime Text 3. The current behavior is for them to remain hidden until you start scrolling. Is there a setting I can change to make it behave this way? Is it part of the theme? Right now I am making the scroll-bars larger by modifying my theme (Cyanide)... I have
// in Cyanide.sublime-theme
[
{
"class": "scroll_bar_control",
"attributes": ["horizontal"],
"content_margin": [3, 4] //makes horiz scrollbar taller
},
{
"class": "scroll_bar_control",
"content_margin": [1, 3] //makes vert scrollbar taller
}
]
回答1:
This is under the overlay_scroll_bars
setting. Overlaid scroll bars disappear when not active, so update your user preferences with the following:
"overlay_scroll_bars": "disabled"
回答2:
I was also having trouble with this. After looking at several references on stack overflow and elsewhere, I actually found a very elegant solution. I am using the Seti_UI theme, so other themes may be a bit different, but they should be close. First, go to the Preferences menu and choose Browse Packages... . Look for the name of the theme you are using. For me, I had to go to the Seti_UI folder and open Seti.sublime-theme in Sublime. You want to find information about your scroll pucks like in my code sample below. It's the "layer0.tint":[44,62,78], that needs changing. You increase the RGB values to your heart's content. Repeat for other pucks of interest. Worked great for me. Hope it does for others.
// Standard vertical scroll puck
{
"class": "puck_control",
"layer0.tint":[44,62,78],
"layer0.opacity": { "target": 1.0, "speed": 10.0, "interpolation": "smoothstep" },
"layer0.inner_margin": 0,
"content_margin": [3,0],
"blur": false
},
回答3:
add the following to theme user override file
// in Cyanide.sublime-theme
[
{
"class": "scroll_area_control",
"overlay": false
}
]
回答4:
Does this happen in Sublime Text only or are using Mac OS X with the default scrollbar behaviour? In the latter case you can force the scrollbars to always show in the General preferences.
回答5:
"overlay_scroll_bars": "enabled"
回答6:
You must enable the minimap viewport in your Preferences settings - user:
"always_show_minimap_viewport": true
From now on you will always see the scroll bar. And if you want to see a Border around the minimap add in the Package Theme you are using:
<key>minimapBorder</key>
<string>#999999</string>
来源:https://stackoverflow.com/questions/28754371/sublime-text-3-hides-scrollbars