Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Random FileNew to Visual Studio Code? Get it now.
Random File

Random File

hippietrail

|
45 installs
| (0) | Free
Open a random file from the current workspace
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Random File Extension for Visual Studio Code

Overview

The Random File extension for Visual Studio Code allows you to quickly open a random file from the current workspace. Can be quite handy for exploring new projects.

Features

  • Open a random file from your workspace.
  • Filter files by extensions you can specify.
  • Excludes files in directories you can also specify.

Usage

  • After installing the extension, you can trigger the command by:
    • Opening the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows) and typing Open a random File.

Configuration

You can customize the file extensions that the are considered by modifying the extensions option in your settings.json:

"randomFile.extensions": [".md", ".txt"]

And you can exclude directories by modifying the excludeDirs option in your settings.json:

"randomFile.excludeDirs": ["node_modules"]

License

This project is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft