Powershell ISE automatisch in Skriptbereich gehen (ohne STRG + I)
Hallo,
jedesmal wenn man in der Powershell ISE mit F5 oder F8 ein Skript ausführt, ist der Cursor danach im Konsolenbereich. Man muss per Maus oder <STRG> + <I> zurückwechseln.
Das ist ziemlich nervig. Kann man das nicht automatisieren oder abstellen?
Danke
Martin
jedesmal wenn man in der Powershell ISE mit F5 oder F8 ein Skript ausführt, ist der Cursor danach im Konsolenbereich. Man muss per Maus oder <STRG> + <I> zurückwechseln.
Das ist ziemlich nervig. Kann man das nicht automatisieren oder abstellen?
Danke
Martin
Please also mark the comments that contributed to the solution of the article
Content-Key: 565858
Url: https://administrator.de/contentid/565858
Printed on: April 24, 2024 at 23:04 o'clock
3 Comments
Latest comment
Ich würde zwar zu einer weniger verbuggten Powershell-Entwicklungsumgebung (VisualStudioCode z.B.) raten, aber das lässt sich machen ...
Register-EngineEvent Powershell.OnIdle -Action {
if($psise.PowerShellTabs.SelectedPowerShellTab.CanInvoke){
$psise.PowerShellTabs.SelectedPowerShellTab.Files.SelectedFile.Editor.Focus()
}
}
Zitat von @AlbertMinrich:
Hab mir auch mal VisualStudioCode installiert. Da hab ich aber genau das gleiche Problem.
Ich nich :-P.Hab mir auch mal VisualStudioCode installiert. Da hab ich aber genau das gleiche Problem.