pawelgrzybek / snippet-generator

Snippet generator for Visual Studio Code, Sublime Text and Atom
https://snippet-generator.app/
1.74k stars 202 forks source link

Feature request for Ctrl+i #70

Open PavelDvorak opened 2 years ago

PavelDvorak commented 2 years ago

hello! thanks for the great generator!

few feature requests:

1) After pressing ctrl+i while having a word "dataset" selected, the generated placeholder should be ${1:dataset} instead of ${1:example}. As of now, when i select "dataset" and press ctrl+i, it is replaced by ${1:example} 2) The Ctrl+i placeholders should auto-increment, ie first press generates ${1:example}, unless it exists already, second press should generate ${2:example}, unless it exists already, etc

thanks, and take care!

pranayrauthu commented 2 years ago

Hi, First feature is a good one to have. There are some open questions with the second one. There are cases where user want to actually have same caret location. Also, we are not sure where the caret locations are going to be. Ex:

image