Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Natural Line NumbersNew to Visual Studio Code? Get it now.
Natural Line Numbers

Natural Line Numbers

erika-morales

|
4 installs
| (0) | Free
Show Software AG Natural line numbers for Natural files (.NSC, .NSN, .NSA, .NSG, .NSS, .NSL, .NSP) based on header LineIncrement and header end.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Natural Line Numbers

Shows Software AG Natural-style line numbers for Natural files (.NSC, .NSN, .NSA, .NSG, .NSS, .NSL, .NSP) based on the file header.

Creada por Erika Morales Hernández.

  • Reads * >Natural Source Header NNNNNN to get the starting base (default 0)
  • Reads * :LineIncrement X to get the increment (default 10)
  • The first code line after * <Natural Source Header is base + increment
  • Status bar always shows the current line's Natural number
  • Command toggles inline decorations which prefix each line with its Natural number

Commands

  • Natural: Toggle Line Decorations (naturalLines.toggleDecorations)

Settings

  • naturalLines.decorateOnOpen (boolean, default true)
  • naturalLines.zeroPad (number, default 6)
  • naturalLines.separator (string, default " | ")

Activation

The extension activates for files identified as natural language, covering the extensions listed above (case-insensitive).

Run (no Node required)

  • Press F5 (Run Extension) to start a new Extension Development Host and open an .NSC file to see the status bar and decorations.

Notes

  • Decoration numbers are rendered in the editor content area (before the line text), not the line number gutter.
  • If the header cannot be found, numbering starts at 0 and increments by 10 from the first line.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft