I installed the PowerShell (PoSh) extension in ADS recently. This is available in the extension pane, and once installed, you get the 4th icon on the right added to your sidebar, for PoSh.
I have the SSMS Keymap extension installed as well, since that was the first one I grabbed. This gives me keymapping to allow CTRL+E to execute queries. I have literally a decade of muscle memory here, and really wanted this to work.
However, when I highlight code in ADS and press F8, which is what I do in VS Code, I get this:
Not only is my PoSh code in the editor tab not executed in the Terminal, but the Server Connection pane pops open.
This is because that’s what keymap does for F8. I can use the command palette to debug this.
If I open up the keyboard shortcuts and search for F8, I find that a number of things use this.
The last binding is the one that’s in effect, and you can see that the Show Connections overrides the PowerShell item.
Fortunately, I can edit this by clicking on the left of this line.
Once the dialog pops up, it is there to capture any keystrokes, so it’s hard to get a picture of this. However, with a little experimenting, I remapped this to CTRL+L, which has some bindings, but these aren’t ones I use.
Now I see PowerShell as the last item, and if I close this tab, and go back to my code, I can press F8, and I’ll see the line executed in the terminal.