Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Uncanny Cognitive ComplexityNew to Visual Studio Code? Get it now.
Uncanny Cognitive Complexity

Uncanny Cognitive Complexity

Dabolus

|
31,031 installs
| (6) | Free
| Sponsor
See how Mr. Incredible gets more and more uncanny as the cognitive complexity of your code grows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Uncanny Cognitive Complexity

Uncanny Cognitive Complexity is a VS Code extension that shows Mr. Incredible getting more and more uncanny as the cognitive complexity of your code grows.

It works best with TypeScript and JavaScript as it does an AST analysis of the code to compute the correct cognitive complexity, but it also works with any other language by using simple heuristics to estimate the complexity of the code.

Uncanny Cognitive Complexity in action

Credits

  • Virej Dasani for the idea. They made the Incredibly In Your Face extension that works in the same way, but Mr. Incredible will react to the number of errors in your code instead of at your code's cognitive complexity;
  • Thomas Richards for their cognitive-complexity-ts library, which is the one used by this extension under the hood to compute the cognitive complexity of the code;
  • Joshua Clayton for their complexity tool, which I compiled to WebAssembly and used to estimate the cognitive complexity of files other than TypeScript and JavaScript;
  • Myself for the sidebar icon. It literally took me more time to design it than it took me to develop the extension itself. Hope you will appreciate it.

License

MIT. See the LICENSE file for more information.

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