I have been coding with Python for approximately 4 years now and have used both Atom and Visual Studio Code as my code editor. I recently installed VS Code and Python on a new computer and am continually running into unusual behavior. A recent example is trying to run a simple try/except block. Take the following test line of code: try: 1 / 0 except: print("Caught an error!") If I highlight the code above and press shift + enter to execute, I will receive an indentation error as pictured. I know this is not an indentation error and I can run this same code on one of my other computers and editors without issue. In fact, I can run similarly indented code without issues such as: for i in range(3): print(i) I can confirm that I am not mixing up tabs and spaces and can also confirm that both lines of code have the exact same indentation when run in VS Code. This seems to be another example for me in a long list of weird behaviors I've experienced in my new VS Code setup. For the longest time, I couldn't even get VS Code to recognize and run Python code. I experienced a similar issue trying to use tkinter to create a grid using a for loop where, despite copying and pasting an example verbatim from W3 schools, I received the same sort of indentation error. I have no idea what could be causing this, any ideas? Continue reading...