Issues Installing Visual Studio Code

I’m new to PSU, and trying to get VSC working. I installed the extension, but it did not ask for a token per documentation. Where is it? How can I generate one?

Then the documentation says to enable support in PSU Settings → Configuration and it’ll generate a newt token, etc. but that menu item doesn’t exist in my version ( 5.1.2 ) so I’m stuck on where to go from here.

Tool: Visual Studio, Visual Studio Code, PSScriptPad, PowerShell Module
Version: 

Sorry that it’s confusing. It sounds like the docs need an update. Can you send me a link to where you are looking? I’ll fix it.

In v5, you can do the following. In PSU, hover your user name and click tokens.

Click create new token and set the identity and role.

Grab the token value. You can either get it from the text the top or by clicking the copy button.

In VS Code, in the Universal pane, click the Add Connection button under Connections. You will only have Default if you haven’t configured any. It will open the settings dialog.

From here, you can set the Default connection information. Paste your app token in the App Token field and your Url to your PSU server in the URL field.

If you want to setup multiple connections, you can click the Edit in settings.json button and define an array of named connections, like below. (windows auth isn’t actually implemented and just something I’m working on)

Hope that helps.

Visual Studio Code Extension | PowerShell Universal is the doc i was reading.

Shows the same steps in VSC too.

I was able to successfully connect VSC to PSU. Thank you.

Thank you. I’ll make sure we get this updated for 5.2.