Replace selected string with custom JavaScript function.
const things = [
  'Thing',
  'Thing',
  'Thing',
  'Thing',
  'Thing',
  'Thing',
  'Thing',
]Make selections on all Thing strings, call the command and enter custom transform function:
(value, index) => `${value} #${index}`Then generates:
const things = [
  'Thing #0',
  'Thing #1',
  'Thing #2',
  'Thing #3',
  'Thing #4',
  'Thing #5',
  'Thing #6',
]Idea from @zetavg
MIT

