> Markdown version of [/magazine/406-visual-studio-code-shortcuts-for-navigating-your-code](https://www.wearedevelopers.com/magazine/406-visual-studio-code-shortcuts-for-navigating-your-code). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # Visual Studio Code Shortcuts for Navigating Your Code **By:** [Daniel Cranney](https://www.wearedevelopers.com/@daniel-cranney) **Published:** March 21, 2024 As a project grows, it can quickly become difficult to manage. With a large number of files, functions, modules, dependencies and more, navigating between your project assets can be cumbersome and inefficient. While it might be tempting to simply accept it, or to think that this is _just part of life as a developer_ working on large-scale projects… it doesn’t have to be that way. In this, the latest instalment in our Visual Studio guide for upgrading your development skills, we’ll give you some quick-fire tips to move around your codebase quickly, seamlessly and perhaps most importantly, effortlessly. ## Open a Specific File ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc3748409cfe49a45d53d9_Jump-to-File.gif) _Open a specific file with CTRL + P_ If you're moving back and forth between different files, do it quickly with this shortcut. Use **CTRL + P** to jump back into to a recently opened file, or search for one in particular using the search bar. ## Cycle Through Open Files ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc3769612a6f271c9e1bfa_Tab-Between-Files.gif) _Cycle through open files with ALT + SHIFT + [or]_ When you've got a number of files open, leave your mouse on the mousepad and tab between them with ease using **ALT + SHIFT + [or]** (square brackets) to cycle through open files. ## Go to Specific Line ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc3770d1fc12597bb154c6_Go-to-Line.gif) _Go to a specific line with CTRL + G_ Save yourself from repetitively going back and forth between lines, and jump straight to the line of your choice with **CTRL + G**. Once the pop-up opens, you can either enter the line you want to go to, or use **F8** (or fn + F8 on Mac) to navigate directly to any errors or warnings within that file. ## Find the Nearest Outer Brackets ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc3779e693059361302c2e_Outer-Brackets.gif) _Find the nearest outer brackets with CTRL + SHIFT + \_ Sometimes you get so deep into your code, you forget exactly where you are within the file. Get your bearings in an instant and find the nearest outer brackets using **CTRL + SHIFT + \** (backslash). ## Expand or Shrink Selection ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc37809f69d43a550e2abd_Expand-Selection.gif) _Expand or shrink selection with SHIFT + ALT + Left or Right Arrows_ This one is often overlooked, but can be incredibly useful when you’re trying to select a large element or code block, and want to quickly expand it to include parent elements, or outer wrapping tags. Expand or shrink your existing selection by clicking **SHIFT + ALT + Left or Right Arrows**. ## Fold or Unfold Regions and Subregions ![__wf_reserved_inherit](https://wearedevelopers.imgix.net/public/magazine/articles/406/images/65fc378f15e580b722648ce7_Unfold-All.gif) _Fold all regions with CTRL + K, then CTRL + 0 (zero)_ De-clutter your IDE interface by folding up some code blocks every now and then. It’s super simple, too. All you need to do is press **CTRL + ALT + [or]** (square brackets) to fold or unfold the subregion. Finally, go minimal and fold all regions using **CTRL + K, then CTRL + 0 (zero)**, and unfold everything and use **CTRL + K, then CTRL + J** to expand all, though you might regret it if you’re in a long file, so go careful! ## Summary Hopefully you found these Visual Studio Code shortcuts useful, and find it easier than ever to navigate around your files. Let us know your thoughts on socials, and share your favourite shortcuts with us for a shoutout in a future article! ## Related Articles - [Visual Studio Code Shortcuts for Cleaning Up Your Code](https://www.wearedevelopers.com/magazine/410-visual-studio-code-shortcuts-for-cleaning-up-your-code) - [15 Great VS Code Keyboard Shortcuts](https://www.wearedevelopers.com/magazine/200-15-great-vs-code-keyboard-shortcuts) - [5 VS Code Shortcuts to Improve Your Markdown](https://www.wearedevelopers.com/magazine/395-5-vs-code-shortcuts-to-improve-your-markdown) - [test](https://www.wearedevelopers.com/magazine/172-test) ## Related Videos - [Practical tips for keeping your C# code base clean](https://www.wearedevelopers.com/videos/100149-practical-tips-for-keeping-your-c-code-base-clean) - [Behind the Scenes of Building VS Code - Harald Kirschner](https://www.wearedevelopers.com/videos/1902-behind-the-scenes-of-building-vs-code-harald-kirschner) - [What you can learn from an open-source project with 500 million downloads](https://www.wearedevelopers.com/videos/1556-what-you-can-learn-from-an-open-source-project-with-500-million-downloads) - [Let's build a VS Code extension for automated refactorings](https://www.wearedevelopers.com/videos/305-let-s-build-a-vs-code-extension-for-automated-refactorings) ## Related Jobs - [Senior Software Engineer](https://www.wearedevelopers.com/jobs/ext/15942-senior-software-engineer) at **GitHub** - [SENIOR SOFTWARE-ENTWICKLER:IN (W/M/D)](https://www.wearedevelopers.com/jobs/48210-senior-software-entwickler-in-w-m-d) at **Pradtke GmbH** - [Staff Frontend Engineer (Expert+/Lead equivalent) - Hybrid working model, 100%, Ho Chi Minh City](https://www.wearedevelopers.com/jobs/48314-staff-frontend-engineer-expert-lead-equivalent-hybrid-working-model-100-ho-chi-minh-city) at **SMG Swiss Marketplace Group** - [Senior Software Engineer](https://www.wearedevelopers.com/jobs/ext/159190-senior-software-engineer) at **GitHub** - [Staff Frontend Engineer](https://www.wearedevelopers.com/jobs/48313-staff-frontend-engineer) at **SMG Swiss Marketplace Group** - [Software Engineer](https://www.wearedevelopers.com/jobs/ext/1304673-software-engineer) at **Bitpanda**