const__pageData=JSON.parse('{"title":"Setting up Visual Studio Code for QMK Development","description":"","frontmatter":{},"headers":[],"relativePath":"other_vscode.md","filePath":"other_vscode.md"}');
const_sfc_main={name:"other_vscode.md"};
const_hoisted_1=/* @__PURE__ */createStaticVNode('<h1id="setting-up-visual-studio-code-for-qmk-development"tabindex="-1">SettingupVisualStudioCodeforQMKDevelopment<aclass="header-anchor"href="#setting-up-visual-studio-code-for-qmk-development"aria-label="Permalink to "Setting up Visual Studio Code for QMK Development""></a></h1><p><ahref="https://code.visualstudio.com/"target="_blank"rel="noreferrer">VisualStudioCode</a>(VSCode)isanopen-sourcecodeeditorthatsupportsmanydifferentprogramminglanguages.</p><p>Usingafull-featurededitorsuchasVSCodeprovidesmanyadvantagesoveraplaintexteditor,suchas:</p><ul><li>intelligentcodecompletion</li><li>convenientnavigationinthecode</li><li>refactoringtools</li><li>buildautomation(noneedforthecommand-line)</li><li>agraphicalfrontendforGIT</li><li>manyothertoolssuchasdebugging,codeformatting,showingcallhierarchiesetc.</li></ul><p>ThepurposeofthispageistodocumenthowtosetupVSCodefordevelopingQMKFirmware.</p><p>ThisguidecovershowtoconfigureeverythingneededonWindowsandUbuntu18.04</p><h1id="set-up-vs-code"tabindex="-1">SetupVSCode<aclass="header-anchor"href="#set-up-vs-code"aria-label="Permalinkto"SetupVSCode""></a></h1><p>Beforestarting,youwillwanttomakesurethatyouhaveallofthebuildtoolssetup,andQMKFirmwarecloned.Headtothe<ahref="./newbs_getting_started">NewbsGettingStartedGuide</a>togetthingssetup,ifyouhaven'talready.</p><h2id="windows"tabindex="-1">Windows<aclass="header-anchor"href="#windows"aria-label="Permalinkto"Windows""></a></h2><h3id="prerequisites"tabindex="-1">Prerequisites<aclass="header-anchor"href="#prerequisites"aria-label="Permalinkto"Prerequisites""></a></h3><ul><li><p><ahref="https://git-scm.com/download/win"target="_blank"rel="noreferrer">GitforWindows</a>(Thislinkwillprompttosave/runtheinstaller)</p><ol><li>Disablealloftheoptionsbut<code>GitLFS(LargeFileSupport)</code>and<code>CheckdailyforGitforWindowsupdates</code>.</li><li>Setthedefaulteditorto<code>UseVisualStudioCodeasGit'sdefaulteditor</code></li><li>Selectthe<code>UseGitfromGitBashonly</code>option,sincethat'stheoptionthatyoushouldusehere.</li><li>Forthe<code>ChoosingHTTPStransportbackend</code>,eitheroptionshouldbefine.</li><li>Selectthe<code>Checkoutas-is,commitUnix-stylelineendings</code>option.QMKFirmwareusesUnixstylecommits.</li><li>Fortheextraoptions,leavethedefaultoptionsasis.</li></ol><p>ThissoftwareisneededforGitsupportinVSCode.Itmaybepossibletonotincludethis,butitismuchsimplertojustusethis.</p></li><li><p><ahref="https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases"target="_blank"rel="noreferrer">GitCredentialManagerforWindows</a>(Optional)</p><p>ThissoftwareprovidesbettersupportforGitbyprovidingsecurestorageforgitcredentials,MFAandpersonalaccesstokengeneration.</p><p>Thisisn'tstrictlyneeded,butwewouldrecommendit.</p></li></ul><h3id="installing-vs-code"tabindex="-1">InstallingVSCode<aclass="header-anchor"href="#installing-vs-code"aria-label="Permalinkto"InstallingVSCode""></a></h3><ol><li>Headto<ahref="https://code.visualstudio.com/"target="_blank"rel="noreferrer">VSCode</a>anddownloadtheinstaller</li><li>Runtheinstaller</li></ol><p>Thispartissupersimple.However,thereissomeconfigurationthatweneedtodotoensurethingsareconfiguredcorrectly.</p><h4id="msys2-setup"tabindex="-1">MSYS2Setup<aclass="header-anchor"href="#msys2-setup"aria-label="Permalinkto"MSYS2Setup""></a></h4><p>Now,wewillsetuptheMSYS2windowtoshowupinVSCodeastheintegratedterminal.Thishasanumberofadvantages.Mostly,youcancontrol+clickonerrorsandjumptothosefiles.Thismakesdebuggingmucheasier.It'salsonice,inthatyoud