VSCode snippets for Pester

Welcome Forums Pester VSCode snippets for Pester

Viewing 4 reply threads
  • Author
    Posts
    • #65971
      Participant
      Topics: 3
      Replies: 14
      Points: 0
      Rank: Member

      I’ve been playing around with Pester a little the last few days, and also playing around with snippets in VSCode. I did some looking, but couldn’t find anyone with snippets for Code, just ones for ISE Steroids.

      Does anyone know of any pre-built pester snippets for VSCode? If not, do you think there would be any interest in someone making some? They look like they’d be really easy to make, and would help people getting started with Pester (not to mention us lazy devs).

    • #65983
      Participant
      Topics: 28
      Replies: 140
      Points: 59
      Rank: Member

      I’ve got lots of VS Code Pester snippets. Here are some of mine:

      https://gist.github.com/adbertram/f8ab504190eec42ed0b34fe45e0b3676

    • #65998
      Participant
      Topics: 3
      Replies: 14
      Points: 0
      Rank: Member

      I love it! I’ll give those a shot, and thank you!

    • #66003
      Participant
      Topics: 3
      Replies: 14
      Points: 0
      Rank: Member

      Huh…as kind of an aside since I’m playing with VS Code snippets (I know, not Pester related), it doesn’t look like there’s a way to insert a dollar sign literal that it doesn’t parse as a tab stop. Maybe I should open a bug/feature request…

    • #66006
      Participant
      Topics: 3
      Replies: 14
      Points: 0
      Rank: Member

      Nevermind, I figured it out: use a double backslash before the $ does the trick.

Viewing 4 reply threads
  • The topic ‘VSCode snippets for Pester’ is closed to new replies.