Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>NaNNew to Visual Studio Code? Get it now.
NaN

NaN

NaN

|
2 installs
| (0) | Free
NaN language support for Visual Studio Code: syntax highlighting for .nan files and nan code blocks in Markdown.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NaN for Visual Studio Code

Support for NaN, the programming language made for agentic coding.

Features

  • Syntax highlighting of .nan files, including the lexical errors the compiler rejects, such as misaligned indentation or trailing whitespace.
  • Highlighting of nan code blocks in Markdown.
  • A NaN icon for .nan files, in light and dark themes.
  • Editor defaults that match the canonical format: four-space indentation and no trailing whitespace.

Development

Requires Node 26.

Command Purpose
npm ci Install the dependencies
npm run lint Lint, type-check and check formatting
npm run format Format all files except Markdown
npm test -- 'test/**/*.test.md' Run the grammar tests
npm run sync-grammars Fetch the pinned grammars
npm run package Build the .vsix package

To try the extension, run code --extensionDevelopmentPath=. from this directory.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft