This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"args": [ | |
"-NoProfile", "-ExecutionPolicy", "Bypass" | |
], | |
"tasks": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need to explicitly import PSReadLine in a number of cases: Windows versions < 10 and | |
# x86 consoles that aren't loading PSReadLine. | |
# Source: https://gist.github.com/rkeithhill/3103994447fd307b68be#file-psreadline_config-ps1 | |
# Other hosts (ISE, ConEmu) don't always work as well with PSReadline. | |
if ($host.Name -ne 'ConsoleHost') { return } | |
# PSReadline hasn't been auto-imported, try to manually import it | |
if (!(Get-Module PSReadline -ErrorAction SilentlyContinue)) { | |
if (!$IsLinux -and !$IsOSX -and ([IntPtr]::Size -eq 4) -and !(Get-Module -ListAvailable PSReadline)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (x == y)`r`n{`r`n`tsomething();`r`n`tsomethingelse();`r`n} } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (x == y) | |
{ | |
something(); | |
somethingelse(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "${env.windir}\\sysnative\\windowspowershell\\v1.0\\PowerShell.exe", | |
"isShellCommand": true, | |
"showOutput": "always", | |
"args": [ | |
"-NoProfile", "-ExecutionPolicy", "Bypass" | |
], | |
"tasks": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PSDeploy | |
Deploy ExampleDeployment { | |
By FileSystem Scripts { | |
FromSource 'SomeScripts' | |
To 'C:\PSDeployTo' | |
Tagged Dev | |
DependingOn ExampleDeployment-Modules | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1/6/2017 10:37:19 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs | |
READ MESSAGE: | |
{ | |
"jsonrpc": "2.0", | |
"id": 76, | |
"method": "completionItem/resolve", | |
"params": { | |
"label": "Style", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1/6/2017 10:37:21 AM [ERROR] - Method "ExecuteCommand" at line 486 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs | |
Execution completed with errors: | |
Parameter set cannot be resolved using the specified named parameters. | |
The term '-Name' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Key Function Description | |
--- -------- ----------- | |
Enter AcceptLine Accept the input or move to the next line if input is missing a c... | |
Shift+Enter AddLine Move the cursor to the next line without attempting to execute th... | |
Ctrl+Enter InsertLineAbove Inserts a new empty line above the current line without attemptin... | |
Ctrl+Shift+Enter InsertLineBelow Inserts a new empty line below the current line without attemptin... | |
Escape RevertLine Equivalent to undo all edits (clears the line except lines import... | |
LeftArrow BackwardChar Move the cursor back one character | |
RightArrow ForwardChar Move the cursor forward one character |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load | |
Split-Path $MyInvocation.MyCommand.Path -Parent | Push-Location | |
Get-ChildItem poco_*.ps1 | %{. $_} | |
Pop-Location | |
function Select-Poco | |
{ | |
Param | |
( | |
[Object[]]$Property = $null, |