This extension will search for string tempates STEP-{} and LINE-{} and generate a STEP counter and/or Line number.
Run extension
View > Command Palette > Generate STEP-{} and LINE-{} number
Features
Generate Line number
Generate a step number
Type of templates:
STEP-{} , a step counter is incremented each time an instance is found on a different line.
LINE-{} , the current line number
Before
console.log ('LINE-{} STEP-{} Open your notebook');
console.log ('LINE-{} STEP-{} grab your pencil, say again STEP-{}');
console.log ('LINE-{} STEP-{} Close your notebook');
After
console.log ('LINE-{1} STEP-{1} Open your notebook');
console.log ('LINE-{2} STEP-{2} grab your pencil, say again STEP-{2}');
console.log ('LINE-{3} STEP-{3} Close your notebook');