We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abe544 commit 15d866eCopy full SHA for 15d866e
docs/guide/extensions.md
@@ -37,7 +37,7 @@ $psEditor.Workspace.OpenFile($profile)
37
```powershell
38
# Insert new text replacing the user's current selection
39
$context = $psEditor.GetEditorContext()
40
-$context.InsertText("# All your script are belong to us", $context.SelectedRange)
+$context.CurrentFile.InsertText("# All your script are belong to us", $context.SelectedRange)
41
```
42
43
#### Setting the selection based on the cursor position
0 commit comments