# VSCode snippets for Pester

**URL:** <https://forums.powershell.org/t/vscode-snippets-for-pester/8195>\
**Category:** Pester\
**Created:** [March 9, 2017, 2:19am UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195 "2017-03-09T02:19:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![poshcodebear](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/poshcodebear/32/525_2.png) [@poshcodebear](https://forums.powershell.org/u/poshcodebear)\
**Post date:** [March 9, 2017, 2:19am UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/1 "2017-03-09T02:19:24Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![adbertram](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/adbertram/32/193_2.png) [@adbertram](https://forums.powershell.org/u/adbertram)\
**Post date:** [March 9, 2017, 8:58am UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/2 "2017-03-09T08:58:16Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![poshcodebear](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/poshcodebear/32/525_2.png) [@poshcodebear](https://forums.powershell.org/u/poshcodebear)\
**Post date:** [March 9, 2017, 11:27am UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/3 "2017-03-09T11:27:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![poshcodebear](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/poshcodebear/32/525_2.png) [@poshcodebear](https://forums.powershell.org/u/poshcodebear)\
**Post date:** [March 9, 2017, 11:52am UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/4 "2017-03-09T11:52:46Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![poshcodebear](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/poshcodebear/32/525_2.png) [@poshcodebear](https://forums.powershell.org/u/poshcodebear)\
**Post date:** [March 9, 2017, 12:12pm UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/5 "2017-03-09T12:12:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:13pm UTC](https://forums.powershell.org/t/vscode-snippets-for-pester/8195/6 "2024-05-16T21:13:31Z")

</div>


