Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>file-pickerNew to Visual Studio Code? Get it now.
file-picker

file-picker

Dmitriy Muraviov

|
3,619 installs
| (2) | Free
Simple tool select file from your project by name or json content
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

File Picker

File picker is simple tool, helping you to select file while running vs code task.

Usage

Example 'tasks.json' file to build project in monorepo with lerna

{
    "version": "2.0.0",
    "inputs": [
        {
            "id": "pickerInput",
            "type": "command",
            "command": "filePicker.pick",
            "args": {
                "masks": "apps/*/package.json",
                "display": {
                    "type": "json",
                    "json": "name",
                    "detail": "fileRelativePath",
                    "description": {
                        "type": "json",
                        "json": "description"
                    }
                },
                "output": "filePath"
            }
        }
    ],
    "tasks": [
        {
            "label": "echo",
            "type": "shell",
            "command": "echo ${pickerInput:p}",
            "problemMatcher": []
        }
    ]
}

Arguments

  • masks <string | string[]> Masks to file search
  • display <DisplayType | DisplayConfig> File names presentation type
  • output <DisplayType | DisplayConfig> Output presentation type

DisplayType:

  • nonereturns undefined
  • fileName returns file name (ex. readme.md)
  • filePath returns absolute file path (ex c:/Projects/proj/info/readme.md)
  • fileRelativePath returns file path, relative to workspace (ex info/readme.md)
  • dirName returs name of directory containings file (ex. info)
  • dirPath returs absolute path to directory containings file (ex. c:/Projects/proj/info)
  • dirRelativePath returs relative path to directory containings file (ex. info)
  • json reads file as json object and returns value of property, specified in PresentationConfig.json property

PresentationConfig:

  • type <DisplayType> Presentation type
  • json <string> Path to property of json file

DisplayConfig:

  • type <DisplayType> Presentation type
  • json <string> Path to property of json file
  • description <PresentationConfig> Rule to get file description (to show in vs code picker)
  • detail <PresentationConfig> Rule to get file details (to show in vs code picker)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft