While working with promise chains in TypeScript, I often find myself dealing with a syntax tax that can become cumbersome. It would be great to have a way to automate this process, especially when using WebStorm. My ideal situation would involve having an Action that could insert a lambda function with the same signature as the arguments displayed in the Parameter Info popup.
For example, suppose I am checking for the presence of an item in a list and writing code like this: https://i.sstatic.net/Dm6S6.png It would be convenient to have a shortcut that inserts
(value, index, array) => {
}
right at the cursor location.
I wonder if there is currently any existing action that provides this functionality?