THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

Jamie Thomson

This is the blog of Jamie Thomson, a data mangler in London working for Dunnhumby

Using Visual Studio Code and the PowerShell extension behind a proxy

I’m putting this here solely for myself so I’ve got it for later. If its useful for anyone else, great.

I’m a big fan of Visual Studio Code (VSCode) for editing code scripts mainly because of the Git integration, the built-in Explorer and the fact that its so lightweight. I have even used VSCode for editing PowerShell scripts in preference to PowerShell ISE even though it didn’t actually support or comprehend PowerShell. That changed however when Microsoft released a PowerShell extension for VSCode (read Announcing PowerShell language support for Visual Studio Code and more!) which brings fantastic PowerShell features such as intellisense, syntax highlighting and code navigation.

Unfortunately I was unable to install the PowerShell extension at work because we have a proxy server sitting in the way, that also affected VSCode’s ability to auto-update itself. It took a while to figure out how to configure VSCode to use the proxy server so I’m posting here in case I ever need to know again.

Open up File->Preferences->User Settings


Add the following into the setting.json file that appears:



(Enter the address of your own proxy server of course.)

Boom. You’re done! After that VSCode will auto-update and you’ll be able to install extensions.


Published Wednesday, June 8, 2016 4:34 PM by jamiet
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS



Mandeep said:

Thanks Jamie.  What would be settings if Configuration script is getting used to set proxy.

June 8, 2016 7:29 PM

Rene said:

And what if the proxy server needs authentication?

June 9, 2016 8:59 AM

jamiet said:


Don't know. If you find out let me know.

June 9, 2016 9:03 AM

Steve Culshaw said:

I can help on the question about authenticating proxy ...

I asked the very question on Stackoverflow yesterday!

Answer is you include the credentials in the URL, e.g. http://username:password@

PS. please vote up on SO if it's useful to you

June 10, 2016 3:28 AM

Leave a Comment


This Blog


Privacy Statement