Scan, validate, preview, normalize, and expand IPv6 addresses across files and folders.
The extension is focused on RFC 5952 compliant formatting with safe preview-first workflows.
Highlights
- RFC 5952 normalization for IPv6 addresses and prefixes
- Expansion to long IPv6 form
- Selection-only conversion from the editor context menu
- File and folder preview reports as Markdown (with diff blocks)
- Clickable jump links to file/line/column from preview and reports
- Live diagnostics and Quick Fix actions in editors
- Recursive folder processing with progress and cancellation
- Optional change highlighting in open editors
- Localized UI (EN, DE, PL, CS, FR, ES, IT, RU, JA)
Example
Input:
2001:0db8:0000:0000:0000:0000:0000:0001/064
Normalized:
2001:db8::1/64
Expanded:
2001:0db8:0000:0000:0000:0000:0000:0001/64
Commands
- IPv6: Scan File
- IPv6: Scan Folder
- IPv6: Preview: IPs in Short Form (RFC5952)
- IPv6: Preview: IPs in Long Form
- IPv6: Convert IP Addresses to Short Form (RFC5952)
- IPv6: Convert IP Addresses to Long Form
- IPv6: Normalize Selection
- IPv6: Expand Selection
Commands are available via:
- Command Palette
- Explorer context menu (file and folder submenus)
- Editor context menu (IPv6-Formatter submenu with grouped actions)
Settings
- ipv6Formatter.includeExtensions: File extensions included in folder scans.
- ipv6Formatter.excludeFolders: Folder names excluded from recursive scans.
- ipv6Formatter.maxFileSizeMB: Maximum file size processed in folder operations.
- ipv6Formatter.showFolderReport: Show summary report after folder scans/conversions.
- ipv6Formatter.highlightConvertedRanges: Highlight changed ranges after conversions.
- ipv6Formatter.showOutputLog: Write detailed conversion logs to output channel.
- ipv6Formatter.changedFilesHandling: open or saveInBackground.
Behavior Notes
- In saveInBackground mode, changed folder files are written directly to disk.
- In open mode, changed files are opened in editors after conversion.
- Quick Fix is offered for non-RFC5952 compliant IPv6 diagnostics.
- Quick Fix normalization is applied only to the selected diagnostic IP address.
- Selection commands modify only the selected text range.
Release Notes (1.1.0)
- Added editor selection actions for normalize and expand.
- Added dedicated editor context submenu: IPv6-Formatter.
- Removed selection preview workflow for a faster apply-only selection UX.
- Updated Quick Fix so it normalizes only the chosen IPv6 occurrence.
- Improved command grouping in the editor context menu.
Development
Requirements:
- Node.js 20+
- VS Code 1.100+
Build:
npm install
npm run compile
Run extension in development:
- Press F5 in VS Code (Extension Development Host)
Create local VSIX:
npm run package
Release Status
Current version: 1.1.0
Latest release includes selection-based conversion and scoped Quick Fix behavior.
License
MIT
| |