-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "boundary" option for rendering whitespace #4290
Comments
This commit adds support for only rendering whitespace that is on a boundary, the logic of which is explained below: - Any tab character - Whitespace at the start and end of a line - Whitespace that is directly adjacent to another whitespace Fixes zed-industries#4290
This commit adds support for only rendering whitespace that is on a boundary, the logic of which is explained below: - Any tab character - Whitespace at the start and end of a line - Whitespace that is directly adjacent to another whitespace Fixes zed-industries#4290
![image](https://github.com/zed-industries/zed/assets/1240491/3dd06e45-ae8e-49d5-984d-3d8bdf98d983) Added support for only rendering whitespace that is on a boundary, the logic of which is explained below: - Any tab character - Whitespace at the start and end of a line - Whitespace that is directly adjacent to another whitespace Release Notes: - Added `boundary` whitespace rendering option ([#4290](#4290)). --------- Co-authored-by: Nicholas Cioli <nicholascioli@users.noreply.github.com>
This just landed in v0.139.0-pre today. |
@JosephTLyons Great news, but default settings and doc doesn't seem to have been updated? ![]() Zed: v0.139.0 (Zed Preview) |
Thanks for the catch, added some docs in #12717 |
sorry to comment on closed ticket but the docs weren't updated |
Thanks for spotting another docs place, feel free to toss in the PR next time if you want to. |
Check for existing issues
Describe the feature
I'm missing this option from VS Code.
![image](https://private-user-images.githubusercontent.com/5619348/294543841-7649fb41-2401-4895-8c77-60e7812ce67d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNjE3OTMsIm5iZiI6MTcyMjI2MTQ5MywicGF0aCI6Ii81NjE5MzQ4LzI5NDU0Mzg0MS03NjQ5ZmI0MS0yNDAxLTQ4OTUtOGM3Ny02MGU3ODEyY2U2N2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjlUMTM1ODEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTg5YjljOGE0NDViZGE1NmM4NmVlOTNhM2FkZjNjYTdlMjVkZjRmOWNhNzQyM2QxNzAyZWY0YjVlMTEwMTFhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.YLV4TZWnL5n6zDvNLjBU1aWqGKvNDyqu8GvzP0MNVDQ)
Showing leading indentation is important, and trailing spaces make it clear to be trimmed, but I don't care about normal single whitespace between code (multiple ones should still show; see example from VS Code below).
If applicable, add mockups / screenshots to help present your vision of the feature
Example
VS Code:
![image](https://private-user-images.githubusercontent.com/5619348/294545699-4d1e9255-3f94-464e-8867-be8d267b80b8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyNjE3OTMsIm5iZiI6MTcyMjI2MTQ5MywicGF0aCI6Ii81NjE5MzQ4LzI5NDU0NTY5OS00ZDFlOTI1NS0zZjk0LTQ2NGUtODg2Ny1iZThkMjY3YjgwYjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjlUMTM1ODEzWiZY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The text was updated successfully, but these errors were encountered: