Dotfile Toggle
A simple VS Code extension to quickly toggle the visibility of dotfiles (hidden files) in the Explorer panel.
Features
- One-click toggle - Show or hide all dotfiles with a single click
- Status bar indicator - See current state at a glance with eye icon
- Smart filtering - Hides common dotfiles like
.env
, .gitignore
, .DS_Store
while keeping .git
hidden for cleaner workspace
- Command palette support - Access via
Ctrl+Shift+P
→ "Toggle Dotfiles"
- Explorer integration - Toggle button appears directly in the Explorer panel
How to Use
Status Bar
Click the eye icon in the status bar:
- 👁️ Open eye = Dotfiles are visible
- 👁️🗨️ Closed eye = Dotfiles are hidden
Command Palette
- Press
Ctrl+Shift+P
(or Cmd+Shift+P
on Mac)
- Type "Toggle Dotfiles"
- Press Enter
Explorer Panel
Click the eye icon in the Explorer panel title bar
What Gets Hidden
When hiding dotfiles, this extension will hide:
- All files starting with
.
(using pattern **/.*
)
- Common dotfiles like
.env
, .gitignore
, .DS_Store
, .vscode
- The
.git
folder remains hidden even when showing other dotfiles
Installation
Install from the VS Code Marketplace:
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X
)
- Search for "Dotfile Toggle"
- Click Install
Configuration
The extension automatically saves your preference per workspace. No additional configuration needed!
Requirements
Extension Settings
This extension contributes the following settings:
dotfileToggle.hideDotfiles
: Controls whether dotfiles should be hidden (managed automatically by the extension)
Known Issues
- When using VS Code with Remote SSH, you'll need to install the extension on both local and remote environments
Release Notes
0.0.1
Initial release of Dotfile Toggle
- Toggle dotfile visibility in Explorer
- Status bar integration
- Command palette support
- Workspace-specific settings
Why This Extension?
Working with projects that have many configuration files (.env
, .eslintrc
, .prettierrc
, etc.) can clutter your Explorer view. This extension gives you a quick way to clean up your workspace view without permanently hiding important files.
Contributing
Found a bug or have a feature request? Please open an issue on the GitHub repository.
License
This extension is released under the GPL License.