How do I search for files in Visual Studio Code?

后端 未结 12 1781
失恋的感觉
失恋的感觉 2020-12-04 04:52

I am used to Resharper where I can search for files, not the content, but the filename, which makes it quick to open new files.

Is this feature implemented in Visual

相关标签:
12条回答
  • 2020-12-04 05:17

    You can also press F1 to open the Command Palette and then remove the > via Backspace. Now you can search for files, too.

    0 讨论(0)
  • 2020-12-04 05:21

    To search for specifil file types in visual studio code.
    Type ctrl+p and then search for something like *.py.
    Simple and easy

    0 讨论(0)
  • 2020-12-04 05:21

    If using vscodevim extension, ctrl + p won't work so I saw another answer using:

    ctrl + shift + p

    which opens the command palette. Hit backspace to remove the '>' and then start typing your filename.

    0 讨论(0)
  • 2020-12-04 05:23

    Using Go to File... which is under the Go menu or using keyboard shortcut:

    • On Windows Ctrl+p or Ctrl+e
    • On macOS Cmd ⌘+p
    • On Linux Ctrl+p or Ctrl+e

    Then type the file name.

    Also be sure to checkout that you can set your own keybindings and that there are cheatsheets available for Windows, macOS and Linux.

    0 讨论(0)
  • 2020-12-04 05:24

    On OSX, for me it's cmd ⌘ + p. cmd ⌘ + e just searches within the currently opened file.

    0 讨论(0)
  • 2020-12-04 05:32

    I'm using VSCode 1.12.1

    OSX press : Cmd + p

    0 讨论(0)
提交回复
热议问题