We are, for now, just using the official github copilot CLI, but they didn't really have hooks for PowerShell, so I wrote a few functions to implement it.
It works great, as you can see:
We are, for now, just using the official github copilot CLI, but they didn't really have hooks for PowerShell, so I wrote a few functions to implement it.
It works great, as you can see:
Default settings in VS Code are dynamic. They are generated based on your extensions's metadata. That means they are up to date. I have some tips for discovering new settings in Vs Code through Default settings (ninmonkeys.com)
Another extension that helps is Better Align
The main settings:
{ "powershell.codeFormatting.autoCorrectAliases": true,
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
I almost always have multiple windows up. My config will
if I use the file -> exit
menu,
If I click X
on a window to close it
<Configuration> | |
<ViewDefinitions> | |
<View> | |
<Name>Utility.PullRequest</Name> | |
<ViewSelectedBy> | |
<TypeName>Utility.PullRequest</TypeName> | |
</ViewSelectedBy> | |
<CustomControl> | |
<CustomEntries> | |
<CustomEntry> |
function playTerm { | |
param( | |
[string]$InputText ='' ) | |
$InputText -replace '␛', [char]0x1b | |
# Or if Pwsh | |
# $InputText -replace '␛', "`e" | |
} | |
$Music = @{} | |
$Music.March = '␛[3;20;7;7;7,~␛[3;15;3,~␛[3;5;10,~␛[3;20;7,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~␛[3;20;14;14;14,~␛[3;15;15,~␛[3;5;10,~␛[3;20;6,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~␛[3;20;19;7;19,~␛[3;10;18;17,~␛[3;5;16;15,~␛[3;10;16;0;8,~␛[3;20;13,~␛[3;10;12;11,~␛[3;5;10;9,~␛[3;10;10;0;3,~␛[3;20;6,~␛[3;15;3,~␛[3;5;10,~␛[3;20;7,~␛[3;15;3,~␛[3;5;10,~␛[3;40;7,~' |
Add-Type -TypeDefinition @' | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace Kernel32 | |
{ | |
public enum FileInfoLevel |