If you are a programmer seeking perfect control over your code, I strongly recommend copying these two lines from here (at the bottom) into your VScode "setting.json" file. Why?!
As you can see (in GIF), by doing this, you activate a built-in function that automatically colorizes the matching brackets and at the same time indicates the scope/block you are in! So what are you waiting for?
Copy these two lines into your VScode "setting.json" file :
"editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": "active",
There are, of course, other tools and methods that can be used to better understand Scope and Block. Please feel free to refer to it in the comments section so it can be included in the article if it is useful.
My name is "Hooman Talakian" and you can follow me on LinkedIn if you liked this article.