TechBuzzPro

Customize Windows Terminal Scrollbar

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

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

  1. Open Windows Terminal. Click the dropdown arrow in the top-left corner and select Settings, or press Ctrl + , (comma) to open the settings interface.
  2. In the settings window, click the Open JSON file link in the bottom left corner. This opens the settings.json file in your default text editor.
  3. Locate the profiles section in the JSON file. Inside it, find the defaults object or the specific profile you want to modify (e.g., PowerShell, Command Prompt).
  4. Inside the chosen profile object, add or modify the scrollbar property. This is a nested object that accepts several keys:
  5. To change scrollbar size, add "size": "double" or "size": "small". Valid values are "small", "double", or a pixel value like "10px".
  6. To change scrollbar color, add "foreground": "#FF0000" (example: red) or use named colors like "white". This sets the thumb (drag handle) color.
  7. To set background color behind the scrollbar, use "background": "#333333".
  8. To control visibility, use "visibility": "visible", "hidden", or "collapsed". hidden hides it but reserves space; collapsed removes space when hidden.
  9. Ensure all entries are properly comma-separated and enclosed in quotes where needed. Example block:
"scrollbar": {
  "size": "small",
  "foreground": "#00FF00",
  "background": "#1E1E1E",
  "visibility": "visible"
}
  1. Save the file and return to Windows Terminal. Open a new tab or restart the app to see changes.
  2. To apply to all profiles, place the scrollbar object inside the defaults section. To customize one shell only, place it in that profile’s block.
  3. 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 only foreground, background, size, and visibility.
  • Placing scrollbar settings outside a profile: The scrollbar object must be inside a profile or defaults, 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: #FF0000 must 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 foreground as your cursor color for consistency.
  • Set "visibility": "hidden" if you want to disable scrolling interaction but keep the space reserved.
  • Back up your settings.json before 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.json file 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 scrollbar block and save to reset.
  • If the terminal still won’t open, reset settings by deleting the settings.json file (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.