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

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
Vercel News
Vercel News
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
C
Check Point Blog
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
博客园_首页
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
V
Visual Studio Blog
小众软件
小众软件

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.