The editor gets its knowledge from the session that’s running, so completion covers whatever is loaded there — built-in cmdlets, modules from the gallery, and your team’s internal functions alike. There is no catalog to index or keep current. If the session knows a command, the editor can complete it.
The everyday gestures:
Ctrl+Spaceopens completion; typing.or-opens it automatically. Lookups are debounced, run off the UI thread, and time out quietly if a provider is slow.- Enter-accepts-completion is a setting, kept separate for editor and console.
Ctrl+Jinserts snippets.- The Functions dropdown,
Ctrl+G, andCtrl+]cover navigation;Ctrl+Mtoggles fold expansion. Shift+Alt+Fformats through PSScriptAnalyzer’s Invoke-Formatter on a background runspace. Settings offers full formatting or indentation-only, for people with brace opinions.Ctrl+/toggles comments.- Ctrl+wheel or
Ctrl+±zooms;Ctrl+0resets.
Start typing a command and press Ctrl+Space, and DetentShell offers to finish it. The suggestions come from your own PowerShell session, so they match what your machine has installed. Type a dash after a command name and the parameters appear. Ctrl+J drops in ready-made building blocks, like a function skeleton or a try/catch, so you don’t have to remember the exact shape. And if your script gets messy, Shift+Alt+F tidies the indentation.
| Field | Value |
|---|---|
| Completion queries | Run inside the user’s own session; nothing leaves the machine |
| Formatter | Local PSScriptAnalyzer module; degrades to a message if absent |
| What | Why |
|---|---|
| PSScriptAnalyzer (optional) | Powers Format Document; absent, the button explains itself with the install hint |
Formatting never runs automatically; the buffer changes only on the user’s explicit command, and a formatter failure returns the original text untouched.
Next up: the console, or back to the wiki index.
PS> Start-Process "https://apps.microsoft.com/detail/9pdxw5ft80g0"
# Opens the Microsoft Store listing
In the Microsoft Store now. DetentShell is $49.99 in the Microsoft Store, with a free trial. Volume licensing for teams is handled separately.