{"id":2940,"date":"2025-09-18T18:44:35","date_gmt":"2025-09-18T22:44:35","guid":{"rendered":"https:\/\/www.sudlatnid.com\/?p=2940"},"modified":"2025-09-18T18:44:35","modified_gmt":"2025-09-18T22:44:35","slug":"these-10-shortcuts-in-vs-code-made-me-10x-faster-at-coding","status":"publish","type":"post","link":"https:\/\/www.sudlatnid.com\/?p=2940","title":{"rendered":"These 10 shortcuts in VS Code made me 10x faster at coding"},"content":{"rendered":"<div class=\"om on eo oo bi op\" tabindex=\"0\" role=\"button\"><\/div>\n<p data-selectable-paragraph=\"\"><img data-dominant-color=\"25292d\" data-has-transparency=\"false\" style=\"--dominant-color: #25292d;\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-2941 alignleft not-transparent\" src=\"https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-300x185.gif\" alt=\"\" width=\"522\" height=\"322\" srcset=\"https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-300x185.gif 300w, https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-1024x631.gif 1024w, https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-768x473.gif 768w, https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-1536x947.gif 1536w, https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-1226x756.gif 1226w, https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing-850x524.gif 850w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<p id=\"ee78\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Picture this.\u00a0You are neck deep in a Python project debugging, scrolling, copying code, and renaming methods and\/or variables like your life depends on it. Then suddenly, you stop and realize &#8220;<em>Wait.. Hold on &#8230; <\/em><em class=\"ip\">am I doing this the <\/em>slow<em class=\"ip\"> way? There has to be a better way&#8230;\u201d \ud83e\udd2f<\/em><\/p>\n<p id=\"7655\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">That was me until I discovered the magical world of <strong class=\"ot iq\">VS Code shortcuts<\/strong>. And no, I\u2019m not just talking about Ctrl+S and Ctrl+C. I mean the clever and real time saving hacks that folks use without even thinking.<\/p>\n<p data-selectable-paragraph=\"\">\n<p data-selectable-paragraph=\"\">\n<p data-selectable-paragraph=\"\">\n<p data-selectable-paragraph=\"\">\n<p data-selectable-paragraph=\"\">\n<p id=\"414d\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">So sit back, grab your coffee \u2615, and let\u2019s unlock some serious efficiency. Here are <strong class=\"ot iq\">10 VS Code shortcuts<\/strong> that I am sure will make you feel like a Python ninja \ud83d\udc0d (albeit minus the black outfit unless that\u2019s your thing).<\/p>\n<h2 id=\"55c9\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">1. \ud83d\udd01 Multi-Cursor Madness:\u00a0<code class=\"de qi qj qk ql b\">Alt + Click<\/code><\/h2>\n<p id=\"7ff1\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Want to rename a variable in 6 places? No need to scroll up and down like a lost soul.<\/p>\n<p id=\"988a\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Just\u00a0<strong class=\"ot iq\">hold\u00a0<\/strong><code class=\"de qi qj qk ql b\"><strong class=\"ot iq\">Alt<\/strong><\/code><strong class=\"ot iq\">\u00a0and click<\/strong>\u00a0wherever you want the cursors. Now type once, and boom \u2014 changes everywhere. Feels like magic. \ud83c\udfa9\u2728<\/p>\n<h2 id=\"80f8\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">2. \ud83e\ude84 Quick Rename:\u00a0<code class=\"de qi qj qk ql b\">F2<\/code><\/h2>\n<p id=\"46eb\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Don\u2019t manually change that function name in 10 places. Just click on the name, hit\u00a0<code class=\"de qi qj qk ql b\">F2<\/code>, rename it once, and VS Code updates it everywhere in the file.<\/p>\n<p id=\"b0f8\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Pure genius &amp; laziness.<\/p>\n<h2 id=\"c936\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">3. \u2702\ufe0f Cut the Whole Line:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + X<\/code>\u00a0(without selecting!)<\/h2>\n<p id=\"2222\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\"><code class=\"de qi qj qk ql b\">Ctrl + X<\/code>\u00a0cuts the\u00a0<em class=\"pn\">entire<\/em>\u00a0line if nothing is selected?<\/p>\n<h2 id=\"a0ab\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">4. \ud83c\udfaf Go to Definition:\u00a0<code class=\"de qi qj qk ql b\">F12<\/code><\/h2>\n<p id=\"c935\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Right-clicking &gt; Go to Definition? Please. Just hit\u00a0<code class=\"de qi qj qk ql b\">F12<\/code>\u00a0and teleport straight to the function\/class\/variable definition like you\u2019re in\u00a0<em class=\"pn\">Python Hogwarts<\/em>. \ud83e\uddd9\u200d\u2642\ufe0f<\/p>\n<h2 id=\"1343\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">5. \ud83d\udd0d Find All Matches:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + F<\/code>, then\u00a0<code class=\"de qi qj qk ql b\">Alt + Enter<\/code><\/h2>\n<p id=\"657e\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\"><code class=\"de qi qj qk ql b\">Ctrl + F<\/code>\u00a0is basic. But\u00a0<strong class=\"ot iq\">after finding<\/strong>, hit\u00a0<code class=\"de qi qj qk ql b\">Alt + Enter<\/code>. It selects\u00a0<em class=\"pn\">all<\/em>\u00a0matches so you can edit them\u00a0<em class=\"pn\">in one go<\/em>. Perfect for bulk renaming or fixing typos.<\/p>\n<p id=\"75a9\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Saves hours, especially in spaghetti code \ud83c\udf5d<\/p>\n<h2 id=\"34bf\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">6. \u2b06\ufe0f\u2b07\ufe0f Move Code Up or Down:\u00a0<code class=\"de qi qj qk ql b\">Alt + \u2191 \/ \u2193<\/code><\/h2>\n<p id=\"3408\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Want to move a line or block of code without cutting\/pasting like it\u2019s 2003?<\/p>\n<p id=\"41ef\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Just\u00a0<code class=\"de qi qj qk ql b\">Alt + \u2191<\/code>\u00a0or\u00a0<code class=\"de qi qj qk ql b\">Alt + \u2193<\/code>. Line shifts up or down, no mess, no stress.<\/p>\n<h2 id=\"672f\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">7. \ud83d\udd00 Select Same Words:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + D<\/code><\/h2>\n<p id=\"9473\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Click a variable, hit\u00a0<code class=\"de qi qj qk ql b\">Ctrl + D<\/code>, and keep tapping it. It selects the next same word each time \u2014 like \u201cselect Pok\u00e9mon, but for variables.\u201d \ud83d\ude02<\/p>\n<p id=\"c3e5\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Great when you want to rename things quickly and safely.<\/p>\n<h2 id=\"f25f\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">8. \ud83e\uddf9 Auto-Format Everything:\u00a0<code class=\"de qi qj qk ql b\">Shift + Alt + F<\/code><\/h2>\n<p id=\"4d1b\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Code looking like it just came out of a blender? Hit\u00a0<code class=\"de qi qj qk ql b\">Shift + Alt + F<\/code>.<\/p>\n<p id=\"6290\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Your code is now clean, spaced, and pretty. Like it just went to a spa.<\/p>\n<h2 id=\"365c\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">9. \ud83e\udded Command Palette:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + Shift + P<\/code><\/h2>\n<p id=\"8541\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Think of this as your VS Code GPS. Want to change theme, run a script, or enable a formatter? Just\u00a0<code class=\"de qi qj qk ql b\">Ctrl + Shift + P<\/code>\u00a0and search it like Google.<\/p>\n<p id=\"cf1e\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">It\u2019s the Swiss Army knife of productivity. \ud83d\udd27<\/p>\n<h2 id=\"e903\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">10. \ud83d\udcc2 Quick File Switch:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + P<\/code><\/h2>\n<p id=\"f823\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Need to jump to a file but forgot where it was?\u00a0<code class=\"de qi qj qk ql b\">Ctrl + P<\/code>\u00a0opens a fuzzy finder.<\/p>\n<p id=\"4b4d\" class=\"pw-post-body-paragraph or os ip ot b jj ou ov ow jm ox oy oz gh pa pb pc gk pd pe pf gn pg ph pi pj hl bl\" data-selectable-paragraph=\"\">Type a few letters of the filename and boom \u2014 VS Code serves it hot like garam chai (steaming tea). \u2615<\/p>\n<h2 id=\"3323\" class=\"po pp ip bg pq pr ps jl gd pt pu jo gg pv pw px py pz qa qb qc qd qe qf qg qh bl\" data-selectable-paragraph=\"\">Bonus: \ud83e\udde0 Zen Mode:\u00a0<code class=\"de qi qj qk ql b\">Ctrl + K Z<\/code><\/h2>\n<p id=\"d038\" class=\"pw-post-body-paragraph or os ip ot b jj qm ov ow jm qn oy oz gh qo pb pc gk qp pe pf gn qq ph pi pj hl bl\" data-selectable-paragraph=\"\">Too many distractions? Go full Zen. Hide the sidebars, bottom bar, everything.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Picture this.\u00a0You are neck deep in a Python project debugging, scrolling, copying code, and renaming methods and\/or variables like your life depends on it. Then suddenly, you stop and realize &#8220;Wait.. Hold on &#8230; am&hellip;<\/p>\n<p><a class=\"excerpt-readmore\" href=\"https:\/\/www.sudlatnid.com\/?p=2940\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":2941,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7,16],"tags":[],"class_list":["post-2940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interesting","category-tech-related","odd"],"jetpack_featured_media_url":"https:\/\/www.sudlatnid.com\/wp-content\/uploads\/2025\/09\/VSCode-editing.gif","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2940"}],"version-history":[{"count":1,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2940\/revisions"}],"predecessor-version":[{"id":2942,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/posts\/2940\/revisions\/2942"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=\/wp\/v2\/media\/2941"}],"wp:attachment":[{"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sudlatnid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}