Switching between files in VS Code

Do you use ALT+Tab or CMD-Tab a lot to switch between windows and applications? As a programmer, you know how important it is to be able to switch between files quickly and efficiently, especially when working on large projects with multiple files open at once. In VS Code, one of the most efficient ways to do this is by using the CMD+P (or CTRL+P) shortcut twice in quick succession.

When you hit CMD+P in VS Code, a "Go to file" search box will appear at the top of the editor, allowing you to quickly search for the file you want to switch to. However, when you hit CMD+P twice, you immediately switch to the most recent file you edited, much like using ALT+Tab.

If you're a programmer who frequently switches between files, using CMD+P twice in VS Code can save you time and improve your productivity.

Clicky