{"id":482,"date":"2024-01-24T21:34:18","date_gmt":"2024-01-24T20:34:18","guid":{"rendered":"https:\/\/extendsclass.com\/blog\/?p=482"},"modified":"2024-01-24T20:50:45","modified_gmt":"2024-01-24T18:50:45","slug":"the-automatic-backup-in-vs-code","status":"publish","type":"post","link":"https:\/\/extendsclass.com\/blog\/the-automatic-backup-in-vs-code","title":{"rendered":"The automatic backup in VS Code"},"content":{"rendered":"\n<p>Automatic backup is one of the often overlooked but really cool features of Visual Studio Code (VS Code). Nowadays, it is found in various software, such as the online Microsoft suite.<\/p>\n\n\n\n<p>This feature can enhance our development experience by ensuring that your changes are saved regularly. There&#8217;s nothing more frustrating than losing an hour of work because the PC crashed or due to a mistaken action.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_47_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"ez-toc-toggle-icon-1\"><label for=\"item-69d8d661cd537\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-69d8d661cd537\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extendsclass.com\/blog\/the-automatic-backup-in-vs-code\/#How_to_enable_automatic_backup_in_VS_Code\" title=\"How to enable automatic backup in VS Code\">How to enable automatic backup in VS Code<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extendsclass.com\/blog\/the-automatic-backup-in-vs-code\/#File_Menu\" title=\"File Menu\">File Menu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extendsclass.com\/blog\/the-automatic-backup-in-vs-code\/#Settings\" title=\"Settings\">Settings<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_enable_automatic_backup_in_VS_Code\"><\/span>How to enable automatic backup in VS Code<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"File_Menu\"><\/span>File Menu<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Nothing could be simpler: Through the File menu, click on <em>Auto Save<\/em>. This is to enable automatic backup!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"428\" height=\"655\" src=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/autosave.png\" alt=\"\" class=\"wp-image-483\" srcset=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/autosave.png 428w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/autosave-196x300.png 196w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Settings\"><\/span>Settings<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This second method gives you control over when automatic backup occurs. <\/p>\n\n\n\n<p>By accessing the settings via <strong>File &gt; Preferences &gt; Settings (or CTRL+,)<\/strong>. Search for <em>Auto Save<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"817\" height=\"338\" src=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/settings-autosave.png\" alt=\"\" class=\"wp-image-484\" srcset=\"https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/settings-autosave.png 817w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/settings-autosave-300x124.png 300w, https:\/\/extendsclass.com\/blog\/wp-content\/uploads\/2024\/01\/settings-autosave-768x318.png 768w\" sizes=\"(max-width: 817px) 100vw, 817px\" \/><\/figure>\n\n\n\n<p>Details on possible values:<\/p>\n\n\n\n<ul>\n<li><em><strong>off<\/strong><\/em>: Automatic backup is disabled<\/li>\n\n\n\n<li><em><strong>afterDelay<\/strong><\/em>: Backup occurs after x milliseconds<\/li>\n\n\n\n<li><strong><em>onFocusChange<\/em><\/strong>: Backup occurs when the window loses focus<\/li>\n\n\n\n<li><strong><em>onWindowChange<\/em><\/strong>: Backup occurs as soon as you click in another window<\/li>\n<\/ul>\n\n\n\n<p>There you go, that&#8217;s all for this very short article. After all, we&#8217;re not going to philosophize about this tiny but nice feature.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatic backup is one of the often overlooked but really cool features of Visual Studio Code (VS Code). Nowadays, it is found in various software, such as the online Microsoft suite. This feature can enhance our development experience by ensuring that your changes are saved regularly. There&#8217;s nothing more frustrating than losing an hour of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"categories":[2],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/482"}],"collection":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":2,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"predecessor-version":[{"id":1518,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/posts\/482\/revisions\/1518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media\/485"}],"wp:attachment":[{"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extendsclass.com\/blog\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}