惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
量子位
博客园 - 三生石上(FineUI控件)
博客园 - Franky
博客园_首页
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
IT之家
IT之家
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
Last Week in AI
Last Week in AI
U
Unit 42
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MyScale Blog
MyScale Blog
H
Help Net Security
V
V2EX
S
SegmentFault 最新的问题
月光博客
月光博客
Martin Fowler
Martin Fowler
Vercel News
Vercel News
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I Didn't Want to Open Excel Just to Generate Sequential N...
almiraj · 2026-05-30 · via DEV Community

almiraj

While working in VS Code, I occasionally need sequential numbers.

Something like this:

user_001
user_002
user_003

Or test data for SQL:

INSERT INTO users(id, name, created_at)
VALUES(1, 'testA', '2026-05-28 10:00:00');

INSERT INTO users(id, name, created_at)
VALUES(2, 'testB', '2026-05-28 10:00:01');

INSERT INTO users(id, name, created_at)
VALUES(3, 'testC', '2026-05-28 10:00:02');

Of course, I could open Excel and use formulas.

But somehow that always felt wrong.

I was already in VS Code.
I wanted to stay in VS Code.

VS Code Is Surprisingly Weak at Sequential Numbers

There are workarounds.

You can use multiple cursors.
You can use find-and-replace tricks.
You can generate data elsewhere and paste it back.

None of them are particularly difficult.

They're just slightly inconvenient.

And if you work with SQL, CSV files, or test data regularly, those small inconveniences show up again and again.

So I Built a VS Code Extension

Insert Numbers Ex
https://marketplace.visualstudio.com/items?itemName=almiraj.insert-numbers-ex

The extension inserts sequential numbers at multiple cursor positions.

For example:

001
002
003
004

It supports zero-padding and space-padding.

It also supports dates and times.

2026-12-31 23:59:58
2026-12-31 23:59:59
2027-01-01 00:00:00
2027-01-01 00:00:01

The alphabet, too.

a
b
c
d

Nothing revolutionary.

Just something I found myself wanting often enough.

My Goal Was Simplicity

There are already several extensions that solve similar problems.

Instead of adding more features, I focused on a few things:

  • Lightweight
  • Easy to understand
  • Easy to use immediately
  • Minimal configuration
  • Clear documentation

For small utility tools, I think simplicity matters more than feature count.

Reliability Matters

Text-editing extensions should behave predictably.

The extension includes automated tests covering common scenarios such as:

  • Multiple cursors
  • Zero-padding
  • Custom starting values
  • Repeated execution
  • Different input patterns

The functionality itself is intentionally small, which also helps keep behavior straightforward and predictable.

Special Sequence Numbers

You might even assign serial numbers like this.

1
2
3
1
2
3

A
A
A
B
B
B
C
C
C

Who Might Find This Useful?

If you regularly work with:

  • SQL scripts
  • CSV files
  • Test data generation
  • Bulk text editing

and prefer staying inside VS Code instead of switching tools, this might save you a few minutes every week.

Final Thoughts

This is not a flashy extension.

It's one of those small tools that removes a tiny bit of friction from everyday development.

Those are often my favorite kinds of tools.