Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FindTextInFilesOptions

Options that can be set on a findTextInFiles search.

Hierarchy

  • FindTextInFilesOptions

Index

Properties

Optional afterContext

afterContext: number

Number of lines of context to include after each match.

Optional beforeContext

beforeContext: number

Number of lines of context to include before each match.

Optional encoding

encoding: string

Interpret files using this encoding. See the vscode setting "files.encoding"

Optional exclude

exclude: string | RelativePattern

A glob pattern that defines files and folders to exclude. The glob pattern will be matched against the file paths of resulting matches relative to their workspace. When undefined, default excludes will apply.

Optional followSymlinks

followSymlinks: boolean

Whether symlinks should be followed while searching. See the vscode setting "search.followSymlinks".

Optional include

include: string | RelativePattern

A glob pattern that defines the files to search for. The glob pattern will be matched against the file paths of files relative to their workspace. Use a relative pattern to restrict the search results to a workspace folder.

Optional maxResults

maxResults: number

The maximum number of results to search for

Optional previewOptions

previewOptions: any

Options to specify the size of the result text preview.

Optional useDefaultExcludes

useDefaultExcludes: boolean

Whether to use the default and user-configured excludes. Defaults to true.

Optional useGlobalIgnoreFiles

useGlobalIgnoreFiles: boolean

Whether global files that exclude files, like .gitignore, should be respected. See the vscode setting "search.useGlobalIgnoreFiles".

Optional useIgnoreFiles

useIgnoreFiles: boolean

Whether external files that exclude files, like .gitignore, should be respected. See the vscode setting "search.useIgnoreFiles".