Kane Anderson
Kane Anderson

Reputation: 563

Sublime Text 3 Hides scrollbars

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
    }
]

Upvotes: 21

Views: 19726

Answers (7)

IGRACH
IGRACH

Reputation: 3635

I was able to hide scrollbar with this Theme settings:

{
  "class": "scroll_track_control",
  "content_margin": [0, 0, 0, 0]
},

Scrollbar is still there at the right end of the file, you just can't see it.

Upvotes: 0

Javi Ps
Javi Ps

Reputation: 307

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>

Upvotes: 0

Thom Ives
Thom Ives

Reputation: 3969

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
},

Upvotes: 5

Mehmet Gunduz
Mehmet Gunduz

Reputation: 29

"overlay_scroll_bars": "enabled"

 

Upvotes: 0

Kane Anderson
Kane Anderson

Reputation: 563

add the following to theme user override file

// in Cyanide.sublime-theme
[
    {
        "class": "scroll_area_control",
        "overlay": false
    }
]

Upvotes: 2

Darrick Herwehe
Darrick Herwehe

Reputation: 3722

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"

Upvotes: 45

idleberg
idleberg

Reputation: 12882

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.

Upvotes: 1

Related Questions