{"id":4779,"date":"2024-12-11T12:57:50","date_gmt":"2024-12-11T12:57:50","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4779"},"modified":"2024-12-11T12:58:42","modified_gmt":"2024-12-11T12:58:42","slug":"auto-save-on-run","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/python-on-windows\/visual-studio-code\/auto-save-on-run","title":{"rendered":"Auto save on debug\/run"},"content":{"rendered":"<p>Menu &gt; File &gt; Preferences &gt; Task: Save Before Run<\/p>\n<p style=\"padding-left: 40px;\">In theory this should be all we need, but when set to &#8216;always&#8217; it doesn&#8217;t work for running Python code. Hopefully this will get fixed sometime&#8230;<\/p>\n<p>Instead we have to do this for now:<\/p>\n<p style=\"padding-left: 40px;\">Files: Auto Save = onFocusChange<\/p>\n<p style=\"padding-left: 40px;\">Files: Auto Save Workplace Files Only = On<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Menu &gt; File &gt; Preferences &gt; Task: Save Before Run In theory this should be all we need, but when set to &#8216;always&#8217; it doesn&#8217;t work for running Python code. Hopefully this will get fixed sometime&#8230; Instead we have to do this for now: Files: Auto Save = onFocusChange Files: Auto Save Workplace Files Only [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[370],"tags":[],"class_list":["post-4779","post","type-post","status-publish","format-standard","hentry","category-visual-studio-code"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4779"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4779\/revisions"}],"predecessor-version":[{"id":4781,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4779\/revisions\/4781"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}