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
# Insert new text replacing the user's current selection$context=$psEditor.GetEditorContext()
$context.InsertText("# All your script are belong to us",$context.SelectedRange)
Should be
# Insert new text replacing the user's current selection$context=$psEditor.GetEditorContext()
$context.currentfile.InsertText("# All your script are belong to us",$context.SelectedRange)
The text was updated successfully, but these errors were encountered:
Example found here https://powershell.github.io/PowerShellEditorServices/guide/extensions.html
Should be
The text was updated successfully, but these errors were encountered: