You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume that this controls the indentation for .ps1 files so hopefully, this is the correct place to post this issue.
With Powershell I have this code:
FunctionGet-ForegroundWindow {
Add-Type@" using System; using System.Runtime.InteropServices; public class ClassGetForegroundWindow { [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow(); }"@return [ClassGetForegroundWindow]::GetForegroundWindow()
}
Get-ForegroundWindow
After reindenting it it appears to be:
FunctionGet-ForegroundWindow {
Add-Type@" using System; using System.Runtime.InteropServices; public class ClassGetForegroundWindow { [DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow(); } "@ return [ClassGetForegroundWindow]::GetForegroundWindow()}Get-ForegroundWindow
This then fails to run as the "@ is indented when it shouldn't.
The text was updated successfully, but these errors were encountered:
I assume that this controls the indentation for
.ps1
files so hopefully, this is the correct place to post this issue.With Powershell I have this code:
After reindenting it it appears to be:
This then fails to run as the
"@
is indented when it shouldn't.The text was updated successfully, but these errors were encountered: