How can I find a file by name (or path) in Visual Studio Code?
A Visual Studio shortcut I'm used to is CTRL+,, but it does not work here.
When you have opened a folder in a workspace you can do Ctrl+P (Cmd+P on Mac) and start typing the filename, or extension to filter the list of filenames
if you have:
You can type css and press enter and it will open the page.css. If you type .ts the list is filtered and contains two items.
Go to file... in File > Preferences > Keyboard ShortcutsCtrl+P opens file in Preview mode. In order to open file in new tab, let's follow stackoverflow.com/a/43707807/190309Press Ctl+T will open a search box. Delete # symbol and enter your file name.
Ctrl + P.Ctrl+T is exactly the same as hitting Ctrl+P and entering a # character. Both this answer and Dick's answer open the file if you click on it or hit "enter"; otherwise, both just display a list of results (because they are the exact same search bar, just with differing commands.)I believe the action name is "workbench.action.quickOpen".
If you're looking for a way to have a persisted list of file names, (for example; when you need to edit files in sequance, where you know the name of the files)
There's a bit of roundabout way to do that.
It will produce a list of files that is persisted in search dialog.
^(?<!\n). This regex matches the first line of each fileTo find all tsconfig.json files, including variants like tsconfig.node.json
use the searchterm tsconfig*.json

you can now click through the results to open each file.
Using 'open in editor' will open the text editor with the each search result, this is list persisted as well, from here you can navigate to each file, remove entries you've processed
*.ts seems to work for me. Did you try a larger part of the filename to see if it matches anything at all?Given that the actual configuration can be different as a result of various extensions, it doesn't seem helpful to give a specific shortcut as answer. While the default shortcut seems to be Cmd + P (on a Mac), you can find out or reconfigure it when navigating to your Settings -> Keyboard Shortcuts and search for Go to File...
In my case, the IntelliJ IDEA Keybindings Extension added the double-shift shortcut which I'm using a lot, coming from a Jetbrains IDE.
According to this Github page, it's now a simple Cmd+F inside the File Explorer tree on Mac (and presumably Ctrl+F on Windows). Found and highlighted all the README.md files I've been working on:
file search results in vscode file explorer pane

Caveat: The tree has to be fully expanded for this to work.
It's Ctrl+Shift+O / Cmd+Shift+O on mac. You can see it if you close all tabs
Ctrl+Shift+O is "Go to symbol..." binding. Lists all symbols on the currently open page.Ctrl+p did not work for linux mint 22.1 for me, any shortkeys assigned to that is ignored. Might be a shortkey consumed by the system?
Either way, by default vscode (v1.99.3) maps "go to file..." (thanks Dinei) to Ctrl+E for me. This shows the quick search bar without a preceding character (# with Ctrl+T or > with Ctrl+shift+p).
I found this question helpful to figure out if I had any shortkeys overwritten or removed myself and forgot about it.
[CTRL] + ';'insteadExplorer Treestackoverflow.com/a/61460276/2736742