Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open files on startupNew to Visual Studio Code? Get it now.
Open files on startup

Open files on startup

kanokiw

|
192 installs
| (0) | Free
Opens specific files when vscode starts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open specific files on startup

setting

  • command palette create config file: ofos.createConfigFIle

  • config file .vscode/ofos.json:

    {
        // whether feature is enabled
        "enabled": true,
        "startupfiles": [
            "app.ts",
            // open all files in the directory
            "src/main/*",
            // exclude server dir, app dir, user/control dir
            "src/sub/*^[server app user/control]"
            // exclude all child directory
            "test/*^[*]",
            ...
        ]
    }
    
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft