Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Powershell VSCode snippets. #69

Open
futuremotiondev opened this issue Nov 16, 2021 · 2 comments
Open

Feature request: Powershell VSCode snippets. #69

futuremotiondev opened this issue Nov 16, 2021 · 2 comments

Comments

@futuremotiondev
Copy link

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.

@Cyber5imon
Copy link

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

@gaiking-uk
Copy link

gaiking-uk commented Nov 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants