New VS Code Extension Replaces Booleans with Toggles

https://lemmy.sdf.org/post/190595

New VS Code Extension Replaces Booleans with Toggles - SDF Chatter

I, uh, actually kind of like the idea. If you just visually converted primitives to a toggle after you type true/false, and let you delete it like any other text, it could be a small convenience on any flags you might change during the development process.

As long as it's not literally a toggle that you can interact with.

I can only imagine the horrors of accidentally clicking in the editor while selecting some text and quietly changing certificateIsValid = false; to true or something like that.

I guess it would show up in git. But yea this sounds like the new "typing my password in the tema chat".
Nah, make it a keybind like alt-shift-click and give it a deafening sound like throwing an industrial breaker.