Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically save changes before running a Python script in VS Code

I'm writing Python scripts in Visual Studio Code, and I execute them with Ctrl+Alt+N, a shortcut added by the extension Code Runner. Is there a way to force VS Code to save the .py before running, thus eliminating the extra step to save the file?

like image 708
H.Scheidl Avatar asked Feb 22 '18 11:02

H.Scheidl


Video Answer


1 Answers

Simplest solution would be, File -> Auto Save. This is available in v1.29.x

enter image description here

like image 118
C-- Avatar answered Sep 19 '22 17:09

C--