<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: almiraj</title>
    <description>The latest articles on DEV Community by almiraj (@almiraj).</description>
    <link>https://dev.to/almiraj</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3959299%2F21a90fd0-016a-41e7-ada5-8e6ad88beebd.jpeg</url>
      <title>DEV Community: almiraj</title>
      <link>https://dev.to/almiraj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/almiraj"/>
    <language>en</language>
    <item>
      <title>I Didn't Want to Open Excel Just to Generate Sequential Numbers in VS Code</title>
      <dc:creator>almiraj</dc:creator>
      <pubDate>Sat, 30 May 2026 02:03:00 +0000</pubDate>
      <link>https://dev.to/almiraj/i-didnt-want-to-open-excel-just-to-generate-sequential-numbers-in-vs-code-508h</link>
      <guid>https://dev.to/almiraj/i-didnt-want-to-open-excel-just-to-generate-sequential-numbers-in-vs-code-508h</guid>
      <description>&lt;p&gt;While working in VS Code, I occasionally need sequential numbers.&lt;/p&gt;

&lt;p&gt;Something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;user_001
user_002
user_003
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or test data for SQL:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'testA'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'2026-05-28 10:00:00'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'testB'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'2026-05-28 10:00:01'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;users&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;created_at&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;VALUES&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'testC'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'2026-05-28 10:00:02'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Of course, I could open Excel and use formulas.&lt;/p&gt;

&lt;p&gt;But somehow that always felt wrong.&lt;/p&gt;

&lt;p&gt;I was already in VS Code.&lt;br&gt;
I wanted to stay in VS Code.&lt;/p&gt;
&lt;h2&gt;
  
  
  VS Code Is Surprisingly Weak at Sequential Numbers
&lt;/h2&gt;

&lt;p&gt;There are workarounds.&lt;/p&gt;

&lt;p&gt;You can use multiple cursors.&lt;br&gt;
You can use find-and-replace tricks.&lt;br&gt;
You can generate data elsewhere and paste it back.&lt;/p&gt;

&lt;p&gt;None of them are particularly difficult.&lt;/p&gt;

&lt;p&gt;They're just slightly inconvenient.&lt;/p&gt;

&lt;p&gt;And if you work with SQL, CSV files, or test data regularly, those small inconveniences show up again and again.&lt;/p&gt;
&lt;h2&gt;
  
  
  So I Built a VS Code Extension
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://marketplace.visualstudio.com/items?itemName=almiraj.insert-numbers-ex" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=almiraj.insert-numbers-ex&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The extension inserts sequential numbers at multiple cursor positions.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;001
002
003
004
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It supports zero-padding and space-padding.&lt;/p&gt;

&lt;p&gt;It also supports dates and times.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2026-12-31 23:59:58
2026-12-31 23:59:59
2027-01-01 00:00:00
2027-01-01 00:00:01
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The alphabet, too.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a
b
c
d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing revolutionary.&lt;/p&gt;

&lt;p&gt;Just something I found myself wanting often enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Goal Was Simplicity
&lt;/h2&gt;

&lt;p&gt;There are already several extensions that solve similar problems.&lt;/p&gt;

&lt;p&gt;Instead of adding more features, I focused on a few things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lightweight&lt;/li&gt;
&lt;li&gt;Easy to understand&lt;/li&gt;
&lt;li&gt;Easy to use immediately&lt;/li&gt;
&lt;li&gt;Minimal configuration&lt;/li&gt;
&lt;li&gt;Clear documentation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For small utility tools, I think simplicity matters more than feature count.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reliability Matters
&lt;/h2&gt;

&lt;p&gt;Text-editing extensions should behave predictably.&lt;/p&gt;

&lt;p&gt;The extension includes automated tests covering common scenarios such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multiple cursors&lt;/li&gt;
&lt;li&gt;Zero-padding&lt;/li&gt;
&lt;li&gt;Custom starting values&lt;/li&gt;
&lt;li&gt;Repeated execution&lt;/li&gt;
&lt;li&gt;Different input patterns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The functionality itself is intentionally small, which also helps keep behavior straightforward and predictable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Special Sequence Numbers
&lt;/h2&gt;

&lt;p&gt;You might even assign serial numbers like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
2
3
1
2
3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A
A
A
B
B
B
C
C
C
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Who Might Find This Useful?
&lt;/h2&gt;

&lt;p&gt;If you regularly work with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SQL scripts&lt;/li&gt;
&lt;li&gt;CSV files&lt;/li&gt;
&lt;li&gt;Test data generation&lt;/li&gt;
&lt;li&gt;Bulk text editing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and prefer staying inside VS Code instead of switching tools, this might save you a few minutes every week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;This is not a flashy extension.&lt;/p&gt;

&lt;p&gt;It's one of those small tools that removes a tiny bit of friction from everyday development.&lt;/p&gt;

&lt;p&gt;Those are often my favorite kinds of tools.&lt;/p&gt;

</description>
      <category>vscode</category>
      <category>sql</category>
      <category>programming</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
