Designer show whitespace for all scripting windows
J
Jeff Krol
Can we have the ability to turn on whitespace indicators for all scripting windows? I am encountering a lot of mixed tabs and spaces in our scripts. This is causing some very undesirable behavior in terms of Python execution.
Recently on a Tag script, I had some spaces in front of a tab that I didn't even notice, despite explicitly checking for it (my fault for missing it). As a result, some code was executing outside of a conditional. From what I'm seeing, you will usually get a warning if your entire line has indenting that does not match the other lines in the script. In my case, I had a mixture of tabs and spaces on a line and received no error about it.
I think the best solution would be to have a way to turn on whitespace indicators like in VSCode. Currently I'm either copy and pasting our code back and forth or I'm clicking all over the script like a madman trying to figure out what the line is using.
Thanks!
Log In
P
Paul Griffith
If you right click, there should be an Appearance -> Show Whitespace option, and toggling it should take effect immediately across all current and future scripting windows within the same designer session. This change won't persist between launches, unfortunately, but is that not working, or not doing what you're looking for?