I'd want to right-click on a variable name in my PHP file and be able to click on the contextual menu item "foreach", which is a PHP custom snippet. The idea is that this snippet will add a foreach
loop that loops through this right-clicked variable (this loop is appended, in the line next to the variable).
Is it possible and how to do this please?