{"id":4565,"date":"2025-06-29T18:44:27","date_gmt":"2025-06-29T18:44:27","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=4565"},"modified":"2025-06-29T18:44:29","modified_gmt":"2025-06-29T18:44:29","slug":"microsoft-vscode-load-a-workspace-from-a-shortcut","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=4565","title":{"rendered":"Microsoft VSCode &#8211; Load a Workspace from a Shortcut"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you&#8217;re like me you probably have some home projects or CPD (Continuing Professional Development) on the go. Microsoft VSCode has the concept of Workspaces, so in my case I have a workspace for Personal projects and a workspace for Work projects. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But it would be nice to be able to just start Microsoft VSCode straight into your desired workspace. I&#8217;m using Microsoft Windows, but similar approaches can be use with MacOS and Linux (although these are not covered here).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly create and save you Personal and Work workspaces so you have two files: <strong>personal.code-workspace<\/strong> and <strong>work.code-workspace<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All you need to do is create a shortcut with the following &#8220;Target&#8221; and &#8220;Start In&#8221;, shown below is one for your Personal workspace.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Target: \"C:\\Users\\bobsmith\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"c:\/Users\/bobsmith\/Documents\/vscode\/personal.code-workspace\"\n\nStart in: \"C:\\Users\\bobsmith\\AppData\\Local\\Programs\\Microsoft VS Code\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And one for your Work workspace:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Target: \"C:\\Users\\bobsmith\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"c:\/Users\/bobsmith\/Documents\/vscode\/work.code-workspace\"\n\nStart in: \"C:\\Users\\bobsmith\\AppData\\Local\\Programs\\Microsoft VS Code\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And that&#8217;s it, you should now be able to easily start direct into your desired workspace.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re like me you probably have some home projects or CPD (Continuing Professional Development) on the go. Microsoft VSCode has the concept of Workspaces, so in my case I have a workspace for Personal projects and a workspace for Work projects. But it would be nice to be able to just start Microsoft VSCode &#8230; <a title=\"Microsoft VSCode &#8211; Load a Workspace from a Shortcut\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=4565\" aria-label=\"Read more about Microsoft VSCode &#8211; Load a Workspace from a Shortcut\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":4195,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,20],"tags":[],"class_list":["post-4565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-random"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4565"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4565\/revisions"}],"predecessor-version":[{"id":4566,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4565\/revisions\/4566"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/4195"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}