I didn't know I could do this until a few weeks ago: While still in Edit mode, you can right-click on a line of code and select Run to Cursor. Visual Studio will compile your application (if necessary ...
The December 2023 update to Python in Visual Studio Code introduces several new features, including configurable debugging options that are now available on the Run button menu. [Click on image for ...