Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>File Name LintNew to Visual Studio Code? Get it now.
File Name Lint

File Name Lint

abgox

|
56 installs
| (1) | Free
| Sponsor
Enforces consistent naming conventions for your files and folders.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

✨ filename-lint ✨

license version code size repo size created


Star ⭐️ or Donate 💰 if you like it!

English | 简体中文 | Github | Gitee

logo

An extension for Visual Studio Code that enforces consistent naming conventions for your files and folders.

Also supports VS Code for the Web.

Getting Started

  1. Install filename-lint.

  2. Add the following configuration to settings.json file.

    "filename-lint.enabled": true
    

Extension Settings

  • "filename-lint.enabled": Enable the extension.
  • "filename-lint.namingPattern": Naming convention to enforce
    • lowercase
    • kebab-case
    • snake_case
    • camelCase
    • PascalCase
    • ...
  • "filename-lint.includePatterns": Glob patterns for files/directories to include.
  • "filename-lint.excludePatterns": Glob patterns for files/directories to exclude.

[!TIP]

  • The following directories are excluded by default:
    • .git, .jj, .svn, .hg, .idea, .vscode, .nyc_output
    • node_modules, out, dist, build, coverage
  • You can override this by adding their patterns to filename-lint.includePatterns.

Extension Commands

  • filename-lint.check-manually: Manually trigger a workspace check.

Release Notes

  • See the changelog for details.

Why Create It

  • Windows-Specific Git Behavior:

    • After git init or git clone on Windows, git automatically sets core.ignorecase = true in its configuration, making filenames case-insensitive.
    • It will cause git to be unable to track changes in the case of file names (e.g. File.txt => file.txt), which may result in different file names between the remote and local repository.
    • Note: Global settings won't override it.
      • Running git config --global core.ignorecase false has no effect.
      • Need manually configure git config core.ignorecase false after each git init or git clone.
  • Proactive Solution:

    • It might be a good idea to enforce lowercase names for files and folders to avoid this issue.
    • It's also default behavior of filename-lint when enabled.
    • When enabled, a warning is given if a file or folder name appears in uppercase letters.
    • Customization: It can be customized by Extension Settings.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft