Files
Andreas Johansson e45280129e editor: Add show_whitespaces to option whether to show spaces and tabs (#1979)
## Description

This adds `.show_whitespace` and `.set_show_whitespace` to the
`InputState` to control whether or not to render spaces and tabs.

I've also updated all the themes with the new `editor.invisible` color,
this is the `comment` color with added opacity.

## Screenshot

<img width="823" height="661" alt="Screenshot From 2026-01-29 14-04-52"
src="https://github.com/user-attachments/assets/2f79f081-83bd-47ea-922c-01b9f22262cf"
/>

<img width="795" height="118" alt="Screenshot From 2026-01-29 14-05-14"
src="https://github.com/user-attachments/assets/b8e22080-a88e-44b7-abd8-4c8100b1a972"
/>

## How to Test

`cargo run --release --example editor`

Click on the "Show whitespace" button in the footer.

## Checklist

- [x] I have read the [CONTRIBUTING](../CONTRIBUTING.md) document and
followed the guidelines.
- [x] Reviewed the changes in this PR and confirmed AI generated code
(If any) is accurate.
- [x] Passed `cargo run` for story tests related to the changes.
- [x] Tested macOS, ~~Windows~~ and Linux platforms performance (if the
change is platform-specific)

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-31 02:56:55 +00:00
..
2026-01-12 22:31:40 +08:00
2026-01-12 22:31:40 +08:00
2025-11-17 10:22:01 +08:00
2026-01-12 22:31:40 +08:00
2026-01-12 22:31:40 +08:00

gpui-component-docs

To install dependencies:

bun install

To run:

bun run dev

This project was created using bun init in bun v1.2.23. Bun is a fast all-in-one JavaScript runtime.