Customize Windows Terminal Scrollbar
In this article
Yes, you can customize the scrollbar in Windows Terminal by editing the JSON settings file to modify scrollbar appearance, including size, color, and visibility. This requires no third-party tools—just a few precise edits to the terminal's configuration.
What You'll Need
- Windows Terminal installed (available via Microsoft Store or GitHub)
- Administrative access to your user account (to edit settings)
- Basic familiarity with JSON formatting (mismatched brackets or commas can break the file)
- A text editor (Notepad, VS Code, or any plain-text editor)
Step-by-Step
- Open Windows Terminal. Click the dropdown arrow in the top-left corner and select Settings, or press Ctrl + , (comma) to open the settings interface.
- In the settings window, click the Open JSON file link in the bottom left corner. This opens the
settings.jsonfile in your default text editor. - Locate the
profilessection in the JSON file. Inside it, find thedefaultsobject or the specific profile you want to modify (e.g., PowerShell, Command Prompt). - Inside the chosen profile object, add or modify the
scrollbarproperty. This is a nested object that accepts several keys: - To change scrollbar size, add
"size": "double"or"size": "small". Valid values are"small","double", or a pixel value like"10px". - To change scrollbar color, add
"foreground": "#FF0000"(example: red) or use named colors like"white". This sets the thumb (drag handle) color. - To set background color behind the scrollbar, use
"background": "#333333". - To control visibility, use
"visibility": "visible","hidden", or"collapsed".hiddenhides it but reserves space;collapsedremoves space when hidden. - Ensure all entries are properly comma-separated and enclosed in quotes where needed. Example block:
"scrollbar": {
"size": "small",
"foreground": "#00FF00",
"background": "#1E1E1E",
"visibility": "visible"
}
- Save the file and return to Windows Terminal. Open a new tab or restart the app to see changes.
- To apply to all profiles, place the
scrollbarobject inside thedefaultssection. To customize one shell only, place it in that profile’s block. - Test the scrollbar by scrolling through command history. If the terminal fails to launch, the JSON likely has a syntax error.
Common Mistakes
- Invalid JSON syntax: Missing commas, extra commas, or mismatched braces break the file. Always validate structure before saving.
- Using incorrect property names: Keys like
"fgColor"or"thumbColor"are not valid. Use onlyforeground,background,size, andvisibility. - Placing scrollbar settings outside a profile: The
scrollbarobject must be inside a profile ordefaults, not at the root level. - Forgetting to restart the terminal: Changes may not appear until a new instance is launched.
- Using hex colors without quotes:
#FF0000must be written as"#FF0000".
Tips
- Use
"size": "collapsed"to hide the scrollbar completely when not in use and save space. - Match scrollbar colors to your theme—use the same
foregroundas your cursor color for consistency. - Set
"visibility": "hidden"if you want to disable scrolling interaction but keep the space reserved. - Back up your
settings.jsonbefore editing to avoid configuration loss. - Use VS Code to edit the file—it highlights JSON errors in real time.
Troubleshooting
If Windows Terminal fails to start after editing:
- Reopen the
settings.jsonfile in a text editor. Look for red underlines or error messages if using VS Code. - Check for trailing commas—JSON does not allow a comma after the last item in an object or array.
- Validate the structure using an online JSON validator (copy only the content, not sensitive data).
- Restore from a backup if available. If not, delete the
scrollbarblock and save to reset. - If the terminal still won’t open, reset settings by deleting the
settings.jsonfile (it regenerates on next launch). - If the scrollbar appears but looks unchanged, ensure the setting is placed in the correct profile and that no later profile overrides it.
Frequently Asked Questions
Can I make the scrollbar thicker?
Yes. Use "size": "double" or set a pixel value like "15px" for a thicker bar.
Does Windows Terminal support colored scrollbars?
Yes. Use the foreground and background properties with hex codes or color names.
Why doesn’t my scrollbar change after saving?
The JSON may have a syntax error. Check for commas, quotes, and braces. Also, ensure you saved the file and restarted the terminal.
Can I hide the scrollbar completely?
Yes. Set "visibility": "collapsed" to remove it and its space, or "hidden" to hide it but keep the space.
Do scrollbar settings apply to all tabs?
Only if placed in the defaults section. Otherwise, they apply only to the profile where defined.
Is it possible to animate the scrollbar?
No. Windows Terminal does not support animation or hover effects for scrollbars through settings.