snippet-generator icon indicating copy to clipboard operation
snippet-generator copied to clipboard

Feature request: Powershell VSCode snippets.

Open futuremotiondev opened this issue 3 years ago • 2 comments

The current snippet creator doesn't double up on $ chars to ensure that the variable is inserted properly.

$$Value will render to $Value in Powershell snippets. Any chance of this being added? :)

Love the app. Thanks.

futuremotiondev avatar Nov 16 '21 02:11 futuremotiondev

I second this, love the app, just can't use it until this is supported as I'm working predominantly in powershell.

Cyber5imon avatar Sep 27 '23 08:09 Cyber5imon

Same here!

While I code across multiple languages, PowerShell is the main one I use and creating snippets in VSCode is a nightmare!... Was so happy when I came across https://snippet-generator.app, but I did notice that it the snippet code generated did not insert variables correctly and I had to go and manually fix these afterwards.

PS: Just to add though, according to this stackoverflow.com answer

  • $ in $variable should be escaped as \\$variable
  • \\$ makes it a literal character and so does not interfere with the tab stops in the snippet

gaiking-uk avatar Nov 04 '23 01:11 gaiking-uk