Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Format Files By IgnoresNew to Visual Studio Code? Get it now.
Format Files By Ignores

Format Files By Ignores

xiaohuohumax

|
1,370 installs
| (2) | Free
Format files by ignore files (.gitignore, ...)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Format Files By Ignore

Downloads Installs License Last Commit Stars

中文

VSCode Extension: Batch formatting files not filtered by the ignore configuration

Install

VSCode Extensions Select Format Files By Ignores

📄 Usage

  • Format Workspace
    • Open command pallette (Ctrl + Shift + P)
    • Enter Start Format Workspace By Ignores 📂
  • Format Folder
    • Right click a folder
    • Select Start Format Folder By Ignores 📂
  • Custom Ignore File
    • Create a file called .formatignore under the folder, and then write the ignore rules (like .gitignore)

Practical tips (ignore rule)

Exclude model

For example: Exclude all svg files

*.svg

Include model

For example: Only include ts files

*
!src/**/
!src/**/*.ts

⚙ Options

  • formatFilesByIgnores.useignoreExtension: Is use ignore extension ?
    • default: true
  • formatFilesByIgnores.ignoreExtension: Ignore extension rules (root folder)
    • default: [ "node_modules", ".vscode", ".git", "dist" ]
  • formatFilesByIgnores.ignoreFileNames: Ignore files name
    • default: [ ".gitignore", ".formatignore" ]
  • formatFilesByIgnores.collapseExplorerFolders: Whether to collapse the explorer folder after formatting?
    • default: true
  • formatFilesByIgnores.filterConcurrency: Filter concurrency
    • default: 16

Ignore priority

ignoreExtension < ignoreFileNames

ignoreFileNames[1] < ignoreFileNames[2]

📹 Demo

folder.gif

workspace.gif

workspace.gif

🔗 Link

  • Homepage
  • Issue
  • Marketplace

🎉 Fin

Have fun 🎉🎉🎉🎉

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