Closed Daeraxa closed 1 year ago
Yes especially in Python or other whitespace languages, being able to see tabs vs spaces is very important
We are landing some support for this in v0.86.0. I'm going to close this for now. If there are additional requests for more additions after, feel free to open up a new issue.
I tried to add this setting on a language override, but it doesn't work.
My settings.json
:
{
"telemetry": {
"metrics": false
},
"buffer_font_size": 15,
"language_overrides": {
"Markdown": {
"tab_size": 2,
"show_whitespaces": "all"
}
}
}
It's a global, editor setting that's supposed to be in the root of the settings, something like this:
{
"features": {
"copilot": true
},
"theme": "Ayu Mirage",
"format_on_save": "on",
"show_whitespaces": "all",
"soft_wrap": "editor_width",
"tab_size": 4
}
Yes, I tried it as a global setting and it works as expected there. This was just a feedback in case this is also supposed to work as a language setting. Example: I care about white spaces in Python and Markdown, but not elsewhere.
I would also like to report that it would be useful to surface configuration errors, like settings not supported by the schema.
the visible whitespaces across all included light themes are way too prominent, could you make it paler or give us an option to edit the color?
It's possible to change the color like this:
"experimental.theme_overrides": {
"editor.invisible": "#777777"
},
It's possible to change the color like this:
"experimental.theme_overrides": { "editor.invisible": "#777777" },
it works! didn't know about the setting
It's possible to change the color like this:
"experimental.theme_overrides": { "editor.invisible": "#777777" },
How does this setting interact with dark/light mode and custom theme colours? Instead of configuring the exact colour, have you considered allowing the user to configure the opacity (alpha channel) that will be applied to the theme-specific colour?
It's possible to change the color like this:
"experimental.theme_overrides": { "editor.invisible": "#777777" },
the problem with the setting is that it works for light themes but looks bad for dark ones
It would be nice if Zed could display whitespace characters/invisibles. I find this really useful when editing documentation and reviewing certain types of log files so is often left on.
Atom has settings for showing whitespace characters/invisibles (Editor > Invisibles) where visible types of whitespace can be identified. This is also present in other editors (Notepad++, VSCode).
I like the amount of flexibility provided by Atom to change the character displayed for each whitespace "type" but personally I've never changed it from the default. If implemented it would be nice to toggle from the command palette rather than setting in the options, again like in Atom
Window: Toggle invisibles