How to do a snippet, that copy selected variable from a code and print it on a next empty line and if there is no empty line below, it should just move code 1 line down and print. Does it make sense?
Example:
**btnOpenModal**[i].addEventListener('click', () => {});
->>>*shortcut*
btnOpenModal[i].addEventListener('click', () => {});
console.log(btnOpenModal);
Thank you for your answers.