Find a file by name in Visual Studio Code

前端 未结 5 1386
予麋鹿
予麋鹿 2020-12-12 12:11

How can I find file by name in Visual Studio Code?

A Visual Studio shortcut I\'m used to is CTRL+,, but it does not work here.

相关标签:
5条回答
  • 2020-12-12 12:44

    It is CMD + P (or CTRL + P) by default. However the keyboard bindings may differ according to your preferences.

    To know your bindings go to the "Keyboard Shortcuts" settings and search for "Go to File"

    0 讨论(0)
  • 2020-12-12 12:46

    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:

    • plugin.ts
    • page.css
    • plugger.ts

    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.

    0 讨论(0)
  • 2020-12-12 12:51

    Press Ctl+T will open a search box. Delete # symbol and enter your file name.

    0 讨论(0)
  • 2020-12-12 13:03

    I believe the action name is "workbench.action.quickOpen".

    0 讨论(0)
  • 2020-12-12 13:05

    It's Ctrl+Shift+O / Cmd+Shift+O on mac. You can see it if you close all tabs

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