This is a vscode extension to easily insert a nano id at the current point of focus. It provides 3 commands + shortcuts for different sizes.
Default sizes:
- large: 36,
- medium: 21,
- small: 10.
The default seed only includes numbers as well as lowercase and uppercase letters.
The first character will always be a letter.
This is to make it easier to use the ids as object properties, since strings with hyphens and strings with a starting number will require special attention.
- place your focus where you want to insert a nano id in your editor
-
use command palette
- press
ctrl+shift+p
orf1
to open command palette - run either command
gen.nano.id.sm
for small nano idgen.nano.id.md
for large nano idgen.nano.id.lg
for medium nano id
- press
-
shortcuts
shift+alt+u 1
for small nano idshift+alt+u 2
for medium nano idshift+alt+u 3
for large nano id
-
mac shortcuts
shift+option+u 1
for small nano idshift+option+u 2
for medium nano idshift+option+u 3
for large nano id
-
NOTE: shift+alt+u 1
doesn't mean pressing all 4 keys together, but rather pressing shift+alt+u
together, letting go and then pressing 1
- place your focus where you want to insert a nano id in your terminal
- use command palette
- press
ctrl+shift+p
orf1
to open command palette - run either command
gen.nano.id.sm.term
for small nano idgen.nano.id.md.term
for large nano idgen.nano.id.lg.term
for medium nano id
- press
- use shortcuts
- same as in editor
- use command palette
Size and seed can be customized for each command/shortcut via extension Settings
ctrl+shift+p
orf1
to open command paletteSettings
- search for
nano-id-gen
- edit
- reload vscode! (
ctrl+shift+p
orf1
and then enterreload
)