Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99304

Visual Studio Code: How to add a snippet entry to contextual menu?

$
0
0

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?


Viewing all articles
Browse latest Browse all 99304

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>