VS Code Extension: Insert Sequences (InsertSeq formerly Insertnums)Insert Sequences is a small VS Code extension that helps you generate and insert various kinds of sequences into one or more cursors. It supports numeric sequences, alphabetic sequences, dates, user-defined or predefined lists, and inline JavaScript expressions. The syntax is compact and powerful, allowing repetition, stepping, frequency control, custom formats, stop expressions, and more. All inputs are previewed live (as a decoration) for the current selections, so you can verify the generated sequence before pressing Enter. The input box also provides real-time syntax and error validation with helpful hints. New in 1.3.0 (User Features)Version 1.3.0 focuses on making InsertSeq easier to adopt in day-to-day work.
Feature Overview (Agenda)At a glance — what InsertSeq can do:
UsageSee CHANGELOG.md for all version history and changes from version to version. Note about insertion order
Starting the extensionYou can start the extension from the Command Palette by searching for If you have used this extension before, you can reuse previous inputs with the command To quickly select from predefined or custom saved favorite sequences, use If you don't want to memorize syntax options, use the Interactive Wizard with Examples (simple → advanced)If you want to see the examples as "live" GIF film click here.Decimal sequence (5 cursors)With five empty cursors, start If you type
Change the stepUse Input:
Repeat sequence after a fixed number of insertionsUse Input:
Repeat each value multiple times (frequency)Use Input:
Startover (overall cycle length)Use Input:
Formatting numbersFormatting uses d3-format style (e.g. Input:
Input:
Input:
Stop expressionUse Input: During preview no new lines are inserted; the preview shows future insertions on the last selected line. Alphabetic sequencesAlpha sequences use the configured alphabet (default Input:
Formatting alphabetic sequencesString formatting supports padding and alignment. Example: right-align in width 10 with Input:
Use Date and Time sequencesDate and time sequences start with
Input:
Input:
ExpressionsUse the pipe Input:
Inline lists (Own sequences)Provide a list inline using square brackets. Items are treated as a circular list. Input:
Predefined listsPredefined lists come from your configuration setting ( Given configuration:
Input:
Predefined functionsPredefined functions come from your configuration settings ( Given configuration:
Input:
As the function can include UUID SequencesUse :uuid to generate Universally Unique Identifiers (UUIDs). By default, standard v4 UUIDs are generated. You can append :v7 to generate time-sortable v7 UUIDs. Formatting options allow you to convert them to uppercase (~u or ~upper) or remove hyphens (~c or ~clean). Input:
Input:
Random Tokens, Passwords & HashesGenerate cryptographically secure random tokens, hexadecimal hashes, and strong passwords:
Modifiers (
Input:
Input:
Input:
Input:
IPv4 Network & Host Address SequencesGenerate sequential IPv4 network and host addresses with automatic 32-bit subnet boundary rollover and CIDR prefix preservation:
Formatting Modifiers (
Input:
Input:
Quoted TemplateStart with Input:
Input:
Backtick TemplateStart with Input:
Input:
Tab character (
|
| Name | Description | Delimiters / Aliases | Value / Notes |
|---|---|---|---|
| start | Start value | beginning of input | integer, float, date, string |
| step | Step / increment | : or step: |
positive or negative (numeric), integer-only for alpha |
| frequency | Repeat each value | * or freq: / frequency: |
positive integer |
| repeat | Cycle length of distinct values | # or rep: / repeat: / repetition: |
positive integer |
| startover | Overall emitted-items cycle length | ## or startover: / startagain: |
positive integer |
| format | Output format | ~ or format: |
format string |
| expr | Inline expression | :: or expr: / expression: |
JS expression (recommended in parentheses) |
| stopexpr | Stop condition | @ or stopif: / stopexpr: / stopexpression: |
JS boolean expression |
| sorting | Document order | $ |
forces top→bottom |
| reverse | Reverse order | ! |
reverses insertion order |
Numeric Sequences details
[<start>[r<random>]][<steps>][<freq>][<repeat>][<startover>][<format>][<expression>][<stopexpression>][$][!]
start
- Initial numeric value. Integer or float. Can include leading zeros for padding (for example,
0001) or radix prefixes for non-decimal bases. - Examples:
1,0001,+10,-5,0x1A. - Random option: append
rwith an optional sign and number (for example,1r10,1R+5).
- Initial numeric value. Integer or float. Can include leading zeros for padding (for example,
steps
- Numeric step/increment.
- Syntax:
:<n>orstep:<n>/steps:<n>. - Accepts signed integers or floats.
- Example:
1:2,10 step:-1.
frequency
- How many times each logical value is emitted before advancing.
- Syntax:
*<n>orfreq:<n>/frequency:<n>. - Example:
1*2→ 1,1,2,2,...
repeat
- Cycle length over distinct logical values.
- Syntax:
#<n>orrep:<n>/repeat:<n>/repetition:<n>.
startover
- Overall emitted-items period; forces the stream to restart after N emitted items.
- Syntax:
##<n>orstartover:<n>/startagain:<n>.
format
- Formatting template for output values. Uses a compact format compatible with the project's formatting helper (based on d3/mini-Python style).
- Syntax:
~<format>orformat:<format>. - Subparts: padding / lead characters, alignment
< > ^ =, sign, alternate#, width/zero flag, thousands separator,, precision.2, output type specifier (for example,b e E o x X %,Rorromanfor uppercase Roman numerals,rfor lowercase Roman numerals). - Examples:
~03d→ zero-padded width 3,~>8→ right align in width 8,1~R→I, II, III...,1~r→i, ii, iii...,1~>5R→ right-aligned Roman numeral.
expression
- Inline JavaScript expression that can compute or transform the current value before formatting.
- Syntax:
::<expr>orexpr:<expr>orexpression:<expr>. It is recommended to quote the expression with"...",'...'or parenthesize( ... ). - Placeholders replaced before evaluation:
_— current value (before expression)p— previous inserted value (''for the first value)a— start values— stepn— number of selectionsi— zero-based iteration index
- Example:
1::(i+1)*10→ outputs10,20,30,.... - Expressions are evaluated in a sandbox; invalid expressions are ignored and the original value is used.
stopexpression
- Boolean JavaScript expression evaluated per emitted item; when true, insertion stops.
- Syntax:
@<expr>orstopif:<expr>/stopexpr:<expr>/stopexpression:<expr>. - Uses the same placeholders as expressions plus
cfor the current value after expression evaluation. - Example:
1@i>9stops oncei > 9. - If stopexpr evaluates to truthy, insertion stops; invalid or missing stopexpr fall back to stopping when emitted count ≥ number of selections.
sort / reverse
$forces insertion order to be document order (top→bottom).!reverses insertion order. Combined:!$(or$!) yields bottom→top document order.
Template input modes (alternative to the start-value approach above):
| Mode | Trigger | Inner sequence |
|---|---|---|
| Quoted Template | "…" or '…' at start |
any sequence type after the closing quote; {} = placeholder |
| Backtick Template | ` at start |
each {…} block is an independent sequence definition |
Escape sequences in output strings:
| Escape | Result |
|---|---|
\t |
tab character (preview renders tab width as non-breaking spaces) |
More examples:
1:2*2#3##8~03d0001:1~>61::(i+1)*10@i>=4
Alphabetic / String Sequences details
[<start>[?u|l|p]][<steps>][<freq>][<repeat>][<startover>][<format>][<expression>][<stopexpression>][$][!]
- start
- Start token drawn from the configured
alphabet. Optional?u(upper),?l(lower),?p(pascal) to adjust case.
- Start token drawn from the configured
- steps
- Integer steps only (no fractional steps). Negative steps allowed.
- format
- Padding, alignment, width, wrap flag
w, and left/right hintl/r. - Examples:
a~>5,a~_>3,z~w,a~10l.
- Padding, alignment, width, wrap flag
- stopexpression
- Always put the stop expression in parentheses.
Other options (frequency, repeat, startover, expression, sort, reverse) behave the same as for numeric sequences.
Examples:
a:1→ a, b, c, ...a:2#3*2→ a,a,c,c,e,e,...x:-1~>4→ right-aligned width 4z~w→ z, a, b, c,...d@(_==="g")→ d, e, f (stops at 'g')
Date and Time sequences details
Most options work like numeric sequences — the parts below differ.
- start
- Begins with
%ordate:followed by a date (yyyy,yyyy-mm,yyyy-mm-dd), time (HH:mm,HH:mm:ss), full ISO timestamp (2026-03-09T14:30:00),now, or a quoted/parenthesized date-time string.%ordate:alone uses the current date and time (now).
- Begins with
- steps
- Numeric offset with unit:
d(days, default),w(weeks),m(months),y(years),h(hours),min/minute/minutes(minutes),s/sec/second/seconds(seconds),ms(milliseconds). - Supports compound duration steps (for example,
:1d15min,:1d2h15m,:2h30min). - Supports decimal/fractional steps (for example,
:24.25h,:1.5d). - Examples:
%2025-03-02:1w,%14:00:15min,%14:00:1d15min,%now:1h.
- Numeric offset with unit:
- format
- Format template using tokens (
yyyy,yy,MMMM,MMM,MM,M,dd,d,HH,H,mm,m,ss,s), locale fallback (lang:de), or special format keywords:~epoch/~timestamp: Unix timestamp in seconds~epochms/~timestampms: Unix timestamp in milliseconds~iso: ISO-8601 string (2026-03-09T14:30:00)~utc/~isoz: UTC ISO-8601 string (2026-03-09T14:30:00Z)
- Examples:
%2025-03-02~"dd.MM.yyyy",%14:00:15min~"yyyy-MM-dd HH:mm:ss",%now:10s~epoch.
- Format template using tokens (
- stopexpression
- Always put the stop expression in parentheses.
Notes:
- Date and time arithmetic uses Temporal semantics to handle month lengths, leap years, and accurate time math.
- Placeholders and stopexpr work as in other sequence types.
Examples:
%2025-03-02:1w~lang:de%14:00:15min%14:00:1d15min%now:1h~iso%:7(start = today)
Expression sequences details
- Start with
|followed by an expression. The expression is evaluated for each emission. It's recommended to put this expression in quotes - Does not accept step, repeat, frequency, or startover — implement such behavior inside the expression.
- Format (
~) and stopexpr (@) are allowed. - Placeholders:
_,o,c,p,a,s,n,i.
Examples:
|"(i+1)*10"| "Row-" + (i+1)~>8| (i%2===0 ? "even" : "odd")@i>=5
Own sequences details
Inline lists in square brackets are treated as circular/custom lists.
- Syntax:
[item1,item2,...]or[item1;item2;...]. - Optional numeric start index after the closing
](1-based):[a,b,c]2. - Steps must be integers; indexing uses modulo the list length.
Examples:
[red,green,blue]→ red, green, blue, red, green[a;b;c] step:2→ a, c, b, a, c, ...[one,two]2→ two, one, two, ...
Predefined sequences details
Predefined sequences are configured under insertseq.mysequences and referenced with the ; prefix.
- Syntax:
;name,;"My Seq",;?1(array index), or;element. - The resolver matches array names or elements and starts accordingly. If no match is found, the identifier is used as a single-item sequence.
- You can add the following chars before or after the optional index:
i: The input is case-insensitive, so;janwill also find a predefined sequence includingJanf: The input has to match the complete word in the sequence. For example,Janwill not match an itemJanuary.s: Normally, the location of the string is not important. With thesoption, the input string has to match the beginning of the sequence item.
- You can add the following chars before or after the optional index:
Examples:
;Mar;?1;?1|3;jan?i
Interaction with other options is the same as for other sequence types.
Function sequences details
Function sequences let you reference user-defined JS functions configured in insertseq.myfunctions. Each configured entry is a JavaScript function expression (typically an arrow function) stored as a string.
Prefixes accepted: = (short), func:, or function: (readable). Functions may be referenced by 1‑based index (e.g. =1, func:2).
Typical expected type: (i: number, start?: number, step?: number, frequency?: number, repeat?: number, startover?: number) => string | number
Syntax and options
- Basic reference:
=1,=2, ... - Readable forms:
func:1,function:1, ... - Override start value: append
;and the start value immediately after the function reference — e.g.=1;5orfunc:2;10. - The following standard sequence options are supported after the function reference and are parsed as for numeric or list sequences:
- step:
:norstep:n - frequency:
*norfreq:n - repeat:
#norrep:n - startover:
##norstartover:n
- step:
- Function indexes are 1‑based (first configured function is
=1). Options after the reference are passed into the function parameters as appropriate.
- Basic reference:
Return value and formatting
- The function must return a string or number. Returned values are inserted verbatim.
Evaluation and errors
- Predefined functions are evaluated in a sandbox or a resilient fallback evaluator depending on the host. If evaluation fails for a particular emission, the extension logs the error (when debug is enabled) and emits an empty/undefined insertion for that emission, but continues processing other emissions.
Tips
- Keep functions deterministic and side‑effect free.
- Use parentheses around complex expressions or include parameters via the standard options (
:|step:,*|freq:,#|repeat:,##|startover:). - Use the History command (
insertseq.history) to quickly reuse or adjust previously working function calls.
UUID Sequences details
Use :uuid to generate Universally Unique Identifiers (UUIDs). By default, standard v4 UUIDs are generated. You can append :v7 to generate time-sortable v7 UUIDs. Formatting options allow you to convert them to uppercase (~u or ~upper) or remove hyphens (~c or ~clean).
Input: :uuid with 3 selections → output:
c5108bb6-52bb-49e0-81f7-e24c538a7c29
f823dc34-97c7-43f1-b9c1-4fc3a23a31c6
1f350c3d-d558-450f-93d3-1e5b10c5b369
Input: :uuid:v7~uc (Version 7, Uppercase, Clean) with 3 selections → output:
0192A02E7A5A70F88E91910D83A61690
0192A02E7A5B796BA53B621F5A132C1B
0192A02E7A5B79A680C4F7249E34B8C1
Random Tokens, Passwords & Hashes details
- Syntax:
:<type>[:<length>][~<format>]or<type>:<length>[~<format>] - Types:
rnd/random: Alphanumeric random string (default length: 16)hex: Random hex string (default length: 32)pwd/password: Cryptographically secure password with upper, lower, digits, and special characters (default length: 16)token: URL-safe token with charactersA-Za-z0-9_-(default length: 24)hash: Random hex hash (default length: 32)
- Modifiers (
~or?):~d(digits only) — ideal for PIN and OTP numeric codes~u(uppercase only)~l(lowercase only)~a(letters only)~s(include special characters)
- Standard Sequence Controls:
- Frequency (
*n), repetition (#n), startover (##n), stop expressions (@expr), and expressions (::expr) are fully supported. - Preserves normal decimal random ranges (e.g.
1r10) and normal string sequences (e.g.rndorhexwithout colon).
- Frequency (
Examples:
:rnd:12:rnd:6~d:hex:16~u:pwd:20:token:32
IPv4 Address sequences details
- Syntax:
[<prefix>][<start_ip>[/<cidr>]][:<step>][*<freq>][#<repeat>][##<startover>][~<format>][::<expr>][@<stopexpr>] - Prefixes (optional):
:ip,:ipv4,ip:,ipv4:. Can be used alone (:ip:1starts at the default address configured ininsertseq.ipStart, default:192.168.1.1) or before an address (:ip:10.0.0.1). - Direct Start: Any valid IPv4 address (e.g.
192.168.1.1or10.0.0.1/24) is recognized directly without prefix. - Arithmetic:
- Full 32-bit unsigned arithmetic.
- Positive and negative increments correctly cross octet boundaries (e.g.
192.168.1.255 + 1→192.168.2.0,10.0.1.0 - 1→10.0.0.255). - CIDR notation (e.g.
/24) is preserved across increments.
- Formatting options (
~orformat:):~0/~pad: Pad each octet to 3 digits (e.g.192.168.001.001). Also enabled automatically when start IP has zero-padded octets.~hex/~x: 8-digit lowercase hexadecimal representation (c0a80101).~HEX/~X: 8-digit uppercase hexadecimal representation (C0A80101).~bin/~b: Dotted binary representation (11000000.10101000.00000001.00000001).~int/~d: Unsigned 32-bit integer (3232235777).- Alignment and width templates (e.g.
~<18) are also supported.
- Standard Sequence Controls:
- Frequency (
*n), repetition (#n), startover (##n), expressions (::expr), and stop expressions (@expr) are fully supported.
- Frequency (
Examples:
192.168.1.1:1192.168.1.255:110.0.0.1/24:110.0.1.0:-1192.168.1.1~0192.168.1.1~hex:ip:1
Quoted Template details
"<template>" <sequence-definition>
'<template>' <sequence-definition>
The input begins with a " or ' character. Everything up to the matching (unescaped) closing quote is the template string; everything after it is the inner sequence definition.
{}— placeholder: replaced by the value produced by the inner sequence for each emission. Multiple{}occurrences per template all receive the same value.\{}— literal{}(not replaced).\"or\'— literal quote character of the same type inside the template.- The inner sequence definition after the closing quote accepts any valid sequence type (numeric, alpha, date, expression, own, predefined, function) including all modifiers (step, format, repeat, etc.).
- When no inner definition is provided, a plain incrementing decimal sequence starting at 1 is used.
Examples:
| Input | Output (3 cursors) |
|---|---|
"Item {}":1 |
Item 1, Item 2, Item 3 |
'x={}, y={}':a:2 |
x=a, y=a, x=c, y=c, x=e, y=e |
"Score: {}~03d":0:10 |
Score: 000, Score: 010, Score: 020 |
"Step \{fixed\}: {}":1 |
Step {fixed}: 1, Step {fixed}: 2, Step {fixed}: 3 |
"Val: {}": \|(i*i) |
Val: 0, Val: 1, Val: 4 |
Backtick Template details
`<template>`
The input begins with a backtick. Everything up to the matching (unescaped) closing backtick is the template string (the closing backtick is optional — if absent the rest of the input is the template).
Each unescaped {…} block within the template is an independent sequence definition. The blocks are evaluated in parallel: for each emission index i, all blocks are advanced simultaneously. The output stops when any block's sequence stops.
- Multiple
{…}blocks — each has its own sequence type and options. \{/\}— literal{/}(not treated as a sequence block).\`— literal backtick inside the template.\\— literal backslash.- An empty
{}block defaults to a plain incrementing decimal sequence starting at 1.
Examples:
| Input | Output (3 cursors) |
|---|---|
`Item {1}` |
Item 1, Item 2, Item 3 |
`{1} - {a}` |
1 - a, 2 - b, 3 - c |
`Col {0x0:1} Row {1}` |
Col 0x0 Row 1, Col 0x1 Row 2, Col 0x2 Row 3 |
`\{{1}\}` |
{1}, {2}, {3} |
`{%2025-01-01:1m~"MMM"} {1}` |
Jan 1, Feb 2, Mar 3 |
`{a}\t{1:5}` |
a+Tab+1, b+Tab+6, c+Tab+11 |
History
Default keybinding: Ctrl+Alt+, (also available via the Command Palette as "Insert Sequences - History").
What it shows:
- A QuickPick list of recent inputs (most recent first). Each entry shows the raw input string and a preview.
- The list is limited by the setting
insertseq.maxHistoryItems.
How to run an entry:
- Select an entry and press Enter to run it again. You receive the live preview before final insertion.
How to edit an entry:
- Use the edit action on a history item to open the input box prefilled with that entry. Edit and press Enter to run.
How to remove entries:
- Use the trash action on an item to delete it, or use the toolbar trash to clear the entire history (confirmation requested).
- Deletions are immediate and cannot be undone via the UI.
Notes:
- History entries store raw input strings only (not generated output). Entries are local to your VS Code profile.
- If no history items exist, the History command falls back to the normal input box.
Presets / Favorites
Default keybinding: Ctrl+Alt+P / Cmd+Alt+P (or Command Palette: "Insert Sequences: Presets / Favorites").
Presets allow you to permanently save, name, and quickly trigger frequently used sequence patterns with a friendly name (e.g. "Markdown Table Row Index", "Zero-padded 3-digit ID", "IPv4 Local Subnet").
Built-in Presets
Out of the box, InsertSeq comes with several practical presets:
- Markdown Row Index:
1:1~<4 - Zero-padded 3-digit ID:
1~03d - IPv4 Local Subnet:
192.168.1.1:1 - UUID v4:
:uuid - UUID v7 (Time-sortable):
:uuid:v7 - Secure 16-char Password:
:pwd:16 - Roman Numerals:
1~R - Daily ISO Dates:
%now:1d~"yyyy-MM-dd"
How to use Presets
- Open Presets QuickPick: Press
Ctrl+Alt+Por runInsert Sequences: Presets / Favorites. - Live Preview: Navigating through presets live-previews the sequence at your cursors.
- Insert: Press
Enterto commit the selected preset. - Save as Preset:
- From History (
Ctrl+Alt+,): Click the ⭐ star icon next to any history entry to name and save it as a preset. - From Presets (
Ctrl+Alt+P): Select$(add) New presetor click the+toolbar button. - Via Command: Run
Insert Sequences: Save as Presetfrom the Command Palette.
- From History (
- Edit & Delete: Each preset item features an edit (✏️) and delete (🗑️) button.
- Toolbar Actions:
+: Add new preset- History icon: Jump directly to recent insertion history
- Trash icon: Clear all presets
- Discard/Reset icon: Restore default built-in presets
Wizard / Assistant
Default keybinding: Ctrl+Alt+W / Cmd+Alt+W (or Command Palette: "Insert Sequences: Wizard").
The interactive Wizard guides you step-by-step through generating sequences without needing to remember raw syntax tokens:
- Choose Category:
- 🔢 Numbers & Integers: Decimals, custom step, zero-padding (
001), roman numerals (~R). - 🔤 Letters & Alphabet: Start letter, step, lowercase/uppercase/pascal casing.
- 📅 Date & Time: Today, time clocks, custom start dates, daily/weekly/hourly step intervals, ISO/locale date formats.
- 🛠️ DevOps, UUIDs & Passwords: UUID v4/v7, random alphanumeric strings, strong passwords, hex hashes, PIN codes, IPv4 subnets.
- 📋 Custom List / Words: Comma-separated items converted to circular arrays.
- ⚡ JavaScript Expression: Formula templates or custom JavaScript expressions.
- 🔢 Numbers & Integers: Decimals, custom step, zero-padding (
- Interactive Live Preview:
- As you navigate options or type values, the editor shows a real-time decoration preview of the sequence across all cursors.
- Back-Button Navigation:
- Made a mistake? Click the VS Code Back button (
←) in the top-left of any step to return to the previous option.
- Made a mistake? Click the VS Code Back button (
- Final Options:
- 🚀 Insert Sequence: Insert immediately into active cursors and record to history.
- ✏️ Fine-tune in Input Box: Transition into the regular input box pre-filled with the wizard's generated sequence.
- ⭐ Save as Preset: Save the generated sequence with a friendly name for recurring use.
- ❌ Cancel: Abort and restore original editor selections.
Configuration
The extension exposes settings under the insertseq namespace. A quick reference:
| Setting | Type | Default | Description |
|---|---|---|---|
insertseq.start |
string | "1" |
Default start value when none is provided. |
insertseq.step |
string | "1" |
Default step/increment. |
insertseq.repetition |
string | "" |
Default repetition / cycle (#). |
insertseq.frequency |
string | "1" |
Default per-value repetition (*). |
insertseq.startover |
string | "" |
Default overall output cycle (##). |
insertseq.stringFormat |
string | "" |
Default format template for string outputs. |
insertseq.numberFormat |
string | "" |
Default format template for numeric outputs (d3-format). |
insertseq.dateFormat |
string | "" |
Default date output format. |
insertseq.ipStart |
string | "192.168.1.1" |
Default start address for IPv4 sequences if omitted. |
insertseq.presets |
array | [] |
User-defined sequence presets and favorites (name, sequence, description). |
insertseq.alphaCapital |
string | "preserve" |
Case handling for alpha sequences: preserve, upper, lower, pascal. |
insertseq.language |
string | "" |
Default language for dates and validation hints/messages ("en", "de", or empty for automatic VS Code UI detection). |
insertseq.sortedOuput |
boolean | false |
Default insertion order: false (default) in multi cursor click order; true in cursor order |
insertseq.reversedOuput |
boolean | false |
Default insertion order: false (default) in natural order; true: in reverse order |
insertseq.century |
string | "20" |
Default century for two-digit year inputs. |
insertseq.centerString |
string | "l" |
Centering bias for string padding: l (left), r (right). |
insertseq.dateStepUnit |
string | "d" |
Default date step unit: d, w, m, y. |
insertseq.delimiter |
string | "" |
Delimiter inserted between multiple insertions when appropriate (when empty string, newlines will be inserted). |
insertseq.alphabet |
string | "abcdefghijklmnopqrstuvwxyz" |
Alphabet used for alpha sequences. |
insertseq.mysequences |
array | see package.json | User-defined sequences (array of arrays). |
insertseq.myfunctions |
array | see package.json | Own defined Functions (Array of functions) - function arguments are (i, start, step, frequency, repeat, startover), where i is the zero-based index of the insertion, start is the start value, step is the step value, frequency is the frequency value, repeat is the repetition value, and startover is the startover value (all beside i are optional, if you use them, give default values). |
insertseq.defaultFunctionNr |
number | 1 |
Default function index for myfunctions. |
insertseq.radixPrefix |
boolean | false |
Emit binary/octal/hex numbers with 0b, 0o, 0x when true. |
insertseq.previewMode |
string | "ghostText" |
Preview style: "ghostText" (native theme color editorGhostText.foreground, italic font, no flicker, compact overflow) or "decoration" (classic style with custom previewColor). |
insertseq.previewColor |
string | "#888888" |
Color used for the preview decoration (when insertseq.previewMode is "decoration"). |
insertseq.previewStatus |
boolean | true |
Show live preview of insertions while typing. |
insertseq.previewDebounce |
number | 60 |
Debounce delay in milliseconds before calculating sequence previews during rapid keystrokes (0 to disable). |
insertseq.maxInsertions |
number | 10000 |
Hard limit on the number of insertions to avoid large operations. |
insertseq.maxHistoryItems |
number | 100 |
Maximum number of history items stored. |
insertseq.debug |
boolean | false |
Enable debug output. |
Edit these settings in the VS Code settings UI or in settings.json under the insertseq namespace.
Release Notes
See the Changelog file for release notes.
Contributors
Thanks to everyone who contributed:
- Yu (@codingyu) — added the history picklist (v0.5.0)
- Jesse Peden (@JessePeden) — fixed package.json typos
- Noah (@nmay231) — inspired date sequences
Special thanks
This project builds on ideas from James Brooks' InsertNums (https://github.com/jbrooksuk/InsertNums). Formatting uses d3-format (https://github.com/d3/d3-format) and date calculations use a Temporal polyfill. Thanks also to contributors and to GitHub Copilot for suggestions.
Enjoy! Volker
Enjoy!