Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Too Many LinesNew to Visual Studio Code? Get it now.
Too Many Lines

Too Many Lines

cakeslice

|
28 installs
| (0) | Free
Keep your file line counts low for maintainability
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Too Many Lines extension

VS Code extension to keep your file line counts low

How it works

After installation you will get warnings if your file is getting too big!

There's two configurable levels:

  • Warning: Number of lines to trigger a subtle inline warning

image

  • Error: Number of lines to trigger an inline error and file error highlight (in pink with a ⭕ icon)

image

With this extension you can make sure your code is maintainable!

Disable for a single file

To disable the warnings in a single file, add disable-too-many-lines in a comment like:

  • // disable-too-many-lines
  • # disable-too-many-lines
  • /* disable-too-many-lines */
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft