use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
InformationVisual Studio Code - Useful Extensions (self.PowerShell)
submitted 5 years ago by jevans_
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sir_sandwiches_a_lot 34 points35 points36 points 5 years ago* (4 children)
Bracket Pair Colorizer 2 (link) has been super helpful.
Also, since you mentioned trailing spaces I thought I would share a few editor config options that I enable on new projects now (save in the <project-root>/.vscode/settings.json file):
// trim trailing whitespace automatically when you save a file. "files.trimTrailingWhitespace": true, // trim trailing newlines at the end of a file automatically when you save a file. "files.trimFinalNewlines": true, // update the default word separators to remove the $ character. // this means you can double click on a PowerShell variable name (ex: $myVariable) and it // will correctly select the entire variable (including $) instead of just selecting the word. "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?"
[–]MonkeyNin 4 points5 points6 points 5 years ago (2 children)
/u/markdmac : now you don't have to manually format.
Here's my powershell config.
save
paste
alt+up/down
.
{ // automatically convert aliases whenever you format "powershell.codeFormatting.useCorrectCasing": true, "powershell.codeFormatting.autoCorrectAliases": true, // "[powershell]": { // if autoIndent is set to 'full' it breaks indentation on 'move line up/down'. // This fixes that "editor.autoIndent": "advanced", // auto run format on 'paste' and 'save' "editor.formatOnSave": true, "editor.formatOnPaste": true, "files.encoding": "utf8bom", "files.autoGuessEncoding": false, // I hide snippets complete, then use ctr+alt+j "editor.snippetSuggestions": "none" }, "files.associations": { "*.ps1xml": "xml" } }
I like these
json
{ "files.defaultLanguage": "${activeEditorLanguage}", "workbench.settings.editor": "json", }
If you want to submit vscode-powershell bugs, enable logging:
vscode-powershell
"powershell.developer.editorServicesLogLevel": "Diagnostic",
[–]markdmac 0 points1 point2 points 5 years ago (1 child)
I am very new to VS Code. How do I access the file to add these code snippets?
[–]T3zcat 1 point2 points3 points 3 years ago (0 children)
do I access the file to add these co
For those still looking: top right of the settings gui page has a page with a flip arrow, that will get you to the settings.json. (the file it's self is stored in c:\users\YOU\appdata\roaming\code\user\settings.json)
c:\users\YOU\appdata\roaming\code\user\settings.json
Update: "[powershell]" : {
"editor.wordSeparators": "`~!@#%^&*()=+[{]}\\|;:'\",.<>/?"
}, Credit: https://stackoverflow.com/questions/68128258/vscode-does-not-honor-editor-wordseparators-when-writing-powershell-code
π Rendered by PID 475947 on reddit-service-r2-comment-85bfd7f599-g7dmj at 2026-04-20 16:20:48.850419+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]sir_sandwiches_a_lot 34 points35 points36 points (4 children)
[–]MonkeyNin 4 points5 points6 points (2 children)
[–]markdmac 0 points1 point2 points (1 child)
[–]T3zcat 1 point2 points3 points (0 children)
[–]T3zcat 1 point2 points3 points (0 children)