16

Here's a demonstration of the feature in IntelliJ (https://www.youtube.com/watch?v=EtnI2doW6XE)?

In case the video isn't viewable, basically the user presses a key-combo, and a dialog box pops up that will reactively response and filter based on the string the user starts to type in. It will show classes and files (and much more) matching what you've typed in. I won't go in to all the details, as I'm not looking for an exact match to this functionality -- I'd be happy if it just searched based on file name for starters! Anything to prevent me from having to browse for a filename in the project Explorer to open the file in vs code when I want to switch to the given file.

I saw How do I search for files in Visual Studio Code? - for me (on Linux) Ctrl-E just shows the file I currently have open under the project explorer (useful sometimes, but not what I'm looking for).

bbarker
  • 11,636
  • 9
  • 38
  • 62

3 Answers3

28
  • Cmd + P opens a search bar for files (doc),
  • Cmd + T opens a search bar for symbols (doc),
Laurent
  • 1,141
  • 1
  • 12
  • 17
  • 2
    In case you have your keybindings remapped like me, you can find the shortcuts by typing (respectively) `> go to file` and `> go to symbol in workspace` into the search bar. – rusheb Nov 06 '22 at 08:39
9

Are you just looking for CTRL-P That brings up a file list. Which is searchable. You can then tab down and right arrow opens up that file. Enter will open a split editor on the file.

Also, if you CTR-p and then type ? you will get a list of keys you can hit such as to "Go to Symbols" and much more in your file or workspace.

And look at CTRL-R it probably does exactly what you are looking for as far as files go.

Mark
  • 143,421
  • 24
  • 428
  • 436
  • 1
    I found it - this particular keybinding had been changed for me by an extension - the command name is `workbench.action.quickOpen`. After using the "Emacs Friendly Keymap" this became `Ctrl+x b`, which I should have realized as being only natural ... thanks. `Ctrl+x Ctrl+f` also worked with this emacs mode. Things are rather confusing though, as the latter does show up when I search keybindings, but the former does not. – bbarker Oct 01 '17 at 13:59
4

The command is called Go to Symbol in Workspace. On my machine, it's assigned to Ctrl+N key. You can also just press Ctrl+P and type # followed by symbol name to search for the symbol.

off99555
  • 3,797
  • 3
  • 37
  • 49