VS Code: Search multiple directories

时间:2017-11-13 17:44:45

标签: visual-studio-code

When searching, VS Code has the ability to list files to include to scope the search. This is used by default when using the "find in folder" feature. For example, searching src results in ./src as the files to include.

Is there a syntax I can use to list multiple directories here? For example, I want to search ./src and ./lib in one search.

2 个答案:

答案 0 :(得分:9)

你试过像./dir1, ./dir2这样的逗号吗?对我来说似乎有用

Filter with comma

答案 1 :(得分:0)

顺便说一下,这是“要包含的文件”的文档:https://code.visualstudio.com/Docs/editor/codebasics#_advanced-search-options

尤其是,您可以使用全局符号。另外,如果您仍然看到意外的行为,则VS Code将默认包含/排除某些目录或文件,具体取决于您的Text("Email", style: TextStyle()), <-- use custom Text widget TextFormField( decoration: InputDecoration( //labelText: "Email", <-- do not use this //labelStyle: TextStyle(), <-- do not use this hintText: "Please enter your email", hintStyle: TextStyle(), ) )