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.
- Open a random file from your workspace.
- Filter files by extensions you can specify.
- Excludes files in directories you can also specify.
- 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 typingOpen a random File
.
- Opening the Command Palette (
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"]
This project is licensed under the MIT License.