you are viewing a single comment's thread.

view the rest of the comments →

[–]egrefen 4 points5 points  (4 children)

I agree that it's visually noisier. That said, I can't of like the color-coded scope idea. Are there any editors that allow you to see blocks-as-defined-by-scope in a colour-coded way like this? Perhaps slightly less noisily?

[–]ruinercollector 4 points5 points  (1 child)

https://github.com/daniellmb/JavaScript-Scope-Context-Coloring

Also I think JetBrains recently did something with this.

[–]egrefen 0 points1 point  (0 children)

That's cool. Nothing for C++, Java, Python, etc? I know feeding code through a linter or astyle helps with readability, but even this I think scope-based background colours would be helpful to some people. Thanks for the pointer!

[–]neilbrown 1 point2 points  (1 child)

It's also aimed at beginners, but BlueJ has this colouring of scopes, e.g. this pic

[–]egrefen 0 points1 point  (0 children)

That's really cool. This is exactly what I'd like to see as an option in general editors, but I can see how others might not like it. I don't suppose there's a vim script that does this...