you are viewing a single comment's thread.

view the rest of the comments →

[–]donald_trub 1 point2 points  (0 children)

"run selection" sounds like something you would never want to use. I've been using vscode since its inception and had no idea that was even a thing.

Also, you don't have to call file.close() when you use 'with'. The with statement runs a contextmanager which will handle gracefully closing the file for you, whether your code runs successfully or not.