Skip to content

Commit 5b4e7f6

Browse files
Merge pull request #11281 from MicrosoftDocs/main639098785808396918sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 0b8a826 + 4c92895 commit 5b4e7f6

6 files changed

Lines changed: 113 additions & 53 deletions

File tree

docs/ide/reference/proxy-firewall-troubleshoot.md

Lines changed: 43 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,22 @@ ai-usage: ai-assisted
1515
When you use Visual Studio behind a corporate proxy or firewall, you might encounter connectivity issues that affect features requiring network access, such as NuGet package restore, extension installation, and AI-powered features. Proxy issues generally fall into two categories:
1616

1717
- **Configuration issues**: Problems with your proxy server setup, certificates, or network configuration. These issues are resolved by your IT administrator.
18-
- **Settings required**: Visual Studio requires additional information about your network configuration. You can find more information about how to supply required settings to Visual Studio in this article. In the latest Insiders version of Visual Studio, you can configure the proxy within Visual Studio settings. You may enable the preview feature in **Tools** > **Options** > **All Settings** > **Preview Features** > **Proxy Configuration**.
18+
19+
::: moniker range="visualstudio"
20+
21+
- **Settings required**: Visual Studio requires additional information about your network configuration. You can configure proxy settings directly in the IDE. See [Configure proxy settings in Visual Studio](proxy-settings.md) for setup instructions.
22+
23+
> [!NOTE]
24+
> The proxy configuration experience is not yet available in all Visual Studio 2026 installations. If you don't see this in your installation, you can install [Visual Studio Insiders](https://visualstudio.microsoft.com/insiders/) to try it. Or, view the [Visual Studio 2022 version of this page](/visualstudio/ide/reference/proxy-firewall-troubleshoot?view=vs-2022&preserve-view=true) for guidance.
25+
26+
::: moniker-end
27+
28+
::: moniker range="vs-2022"
29+
30+
- **Settings required**: Visual Studio requires additional information about your network configuration. You can find more information about how to supply required settings to Visual Studio in this article.
31+
32+
::: moniker-end
33+
1934
- **Product issues**: If you have determined that your issue is not a configuration issue or supplied settings do not address the issue you're seeing, then this could be a product issue. Follow the steps at [Collect diagnostic information](#product-issues-collect-diagnostic-information-for-support) before submitting a ticket.
2035

2136
This article helps you identify which category your issue falls into and provides solutions for common problems.
@@ -93,22 +108,19 @@ The following sections describe common proxy-related issues and their solutions.
93108

94109
**Solution**: Visual Studio supports signing into GitHub and Microsoft Entra accounts behind an authenticating proxy with basic authentication, but most versions of Visual Studio don't have support for Copilot behind an authenticating proxy with basic authentication.
95110

96-
On startup, a prompt appears to capture credentials, and this is used for Entra authentication. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
97-
98-
<!--
99-
::: moniker range="<=visualstudio"
111+
::: moniker range="vs-2022"
100112

101-
**Solution**: Basic authentication for proxies isn't supported in Visual Studio 2022. Upgrade to a later version of Visual Studio and configure proxy settings as described in [Configure proxy settings in Visual Studio](#configure-proxy-settings-in-visual-studio).
113+
On startup, a prompt appears to capture credentials. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
102114

103115
::: moniker-end
104116

117+
::: moniker range="visualstudio"
105118

106-
::: moniker range=">visualstudio"
119+
On startup, a prompt appears to capture credentials. The credentials persist in the Windows **Credential Manager** under **Windows Credentials** as `VSCredentials_<proxyAddress>` as the internet or network address, then the username and password that the proxy requires.
107120

108-
**Solution**: Basic authentication for proxies isn't supported. Configure proxy settings as described in [Configure proxy settings in Visual Studio](#configure-proxy-settings-in-visual-studio).
121+
You can also configure proxy credentials directly in Visual Studio. See [Configure proxy settings in Visual Studio](proxy-settings.md).
109122

110123
::: moniker-end
111-
-->
112124
### Proxy authentication required (NTLM or Kerberos)
113125

114126
**Symptom**: Network-dependent features don't work when using a proxy server with NTLM or Kerberos authentication.
@@ -117,16 +129,17 @@ On startup, a prompt appears to capture credentials, and this is used for Entra
117129

118130
**Solution**: Configure Visual Studio to use default proxy credentials:
119131

120-
<!--
121-
::: moniker range=">visualstudio"
132+
::: moniker range="visualstudio"
122133

123-
1. Go to **Tools** > **Options** > **Environment** > **Network & Proxy**.
124-
1. Enable **Use system default proxy credentials**.
134+
1. Go to **Tools** > **Options** > **Proxy Settings**.
135+
1. Select **Use the logged-in Windows account** to use your current Windows credentials.
136+
1. Restart Visual Studio for the changes to take effect.
137+
138+
For more information, see [Configure proxy settings in Visual Studio](proxy-settings.md).
125139

126140
::: moniker-end
127-
-->
128141

129-
::: moniker range=">=vs-2022"
142+
::: moniker range="vs-2022"
130143

131144
Set the environment variable `VS_USE_DEFAULTPROXY` to `true`. For Copilot, also set `COPILOT_USE_DEFAULTPROXY` to `true`.
132145

@@ -143,56 +156,28 @@ Set the environment variable `VS_USE_DEFAULTPROXY` to `true`. For Copilot, also
143156

144157
**Solution**: Configure the proxy server address explicitly:
145158

146-
<!--
147-
::: moniker range=">visualstudio"
159+
::: moniker range="visualstudio"
160+
161+
1. Go to **Tools** > **Options** > **Proxy Settings**.
162+
1. Select **Use custom proxy settings**.
163+
1. Enter the proxy server URL and port.
164+
1. Restart Visual Studio for the changes to take effect.
148165

149-
1. Go to **Tools** > **Options** > **Environment** > **Network & Proxy**.
150-
1. Enter your proxy server address.
166+
For more information, see [Configure proxy settings in Visual Studio](proxy-settings.md).
151167

152168
::: moniker-end
153-
-->
154169

155-
::: moniker range=">=vs-2022"
170+
::: moniker range="vs-2022"
156171

157172
Set the `HTTPS_PROXY` and `HTTP_PROXY` environment variables to your proxy server address. Copilot needs these set up for Visual Studio.
158173

159174
::: moniker-end
160175

161-
<!--
162-
## Configure proxy settings in Visual Studio
163-
164176
::: moniker range="visualstudio"
165177

166-
Visual Studio provides built-in proxy configuration options that work with most enterprise proxy setups. You can configure these settings through the Options dialog.
167-
168-
### Access proxy settings
169-
170-
To configure proxy settings in Visual Studio:
171-
172-
1. Go to **Tools** > **Options**.
173-
1. Under **All Settings**, select **Proxy Configuration**.
174-
1. Configure the appropriate settings for your environment.
175-
176-
### Use system default proxy credentials
177-
178-
For proxies that use Windows authentication (NTLM or Kerberos):
179-
180-
1. In the **Proxy Configuration** settings, enable **Use Windows proxy configuration**.
181-
1. Restart Visual Studio for the changes to take effect.
182-
183-
This setting allows Visual Studio to use your Windows login credentials for proxy authentication.
184-
185-
### Specify a proxy server address
186-
187-
For proxies that require an explicit address:
188-
189-
1. In the **Proxy Configuration** settings, select **Use custom proxy settings**, and enter your proxy server address in the **Proxy server** field.
190-
1. If your proxy uses a specific port, specify it in the **Proxy port** field.
191-
1. If your proxy requires it, enable **Proxy authentication required**, and enter your credentials.
192-
1. Restart Visual Studio for the changes to take effect.
178+
For detailed proxy configuration steps, see [Configure proxy settings in Visual Studio](proxy-settings.md).
193179

194180
::: moniker-end
195-
-->
196181

197182
## Troubleshoot SSL certificate issues
198183

@@ -277,5 +262,11 @@ Collect the following information:
277262

278263
## Related content
279264

265+
::: moniker range="visualstudio"
266+
267+
- [Configure proxy settings in Visual Studio](proxy-settings.md)
268+
269+
::: moniker-end
270+
280271
- [Install and use Visual Studio behind a firewall or proxy server](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md)
281272
- [Visual Studio connectivity troubleshooting](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md#troubleshoot-network-related-errors)
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Configure proxy settings in Visual Studio
3+
description: Set a custom proxy server, port, and authentication for Visual Studio to connect through enterprise networks.
4+
ms.date: 03/12/2026
5+
ms.topic: how-to
6+
f1_keywords:
7+
- VS.ToolsOptionsPages.Environment.ProxySettings
8+
monikerRange: 'visualstudio'
9+
author: ghogen
10+
ms.author: ghogen
11+
ms.subservice: general-ide
12+
ms.custom: awp-ai
13+
---
14+
15+
# Configure proxy settings in Visual Studio
16+
17+
By default, Visual Studio uses your Windows proxy configuration, but if your organization's network requires a different proxy configuration for Visual Studio, you can set one directly in the IDE through the **Proxy Settings** options page.
18+
19+
> [!NOTE]
20+
> In this first release, the custom proxy settings apply to **GitHub Copilot experiences** and **sign-in flows for Entra ID and GitHub** within Visual Studio. A restart may be required for some features to pick up new proxy settings.
21+
22+
## Prerequisites
23+
24+
The proxy configuration experience is not yet available in all Visual Studio 2026 installations. If you don't see this in your installation, you can install [Visual Studio Insiders](https://visualstudio.microsoft.com/insiders/) to try it. Or, view the [Visual Studio 2022 proxy troubleshooting page](/visualstudio/ide/reference/proxy-firewall-troubleshoot?view=vs-2022&preserve-view=true) for guidance.
25+
26+
## Open the Proxy Configuration page
27+
28+
1. Select **Tools** > **Options** from the menu bar.
29+
1. Select **Proxy Configuration** to open the proxy configuration page.
30+
31+
<!-- TODO: Screenshot of the Proxy Settings page
32+
![Screenshot of the Proxy Settings page under Tools > Options.](../../media/proxy-settings.png)
33+
-->
34+
35+
## Default behavior
36+
37+
By default, Visual Studio uses your Windows proxy configuration. You don't need to change any settings unless you require a proxy configuration that differs from the default for your user account. If the Windows settings are set to No Proxy, Visual Studio respects this and sets no proxy.
38+
39+
## Configure proxy settings
40+
41+
To supply Visual Studio with proxy settings:
42+
43+
1. Open the **Proxy Configuration** page (**Tools** > **Options** > **Proxy Configuration**).
44+
1. Select **Use custom proxy settings**.
45+
1. Enter the **proxy server URL** and **port**.
46+
1. Choose an authentication method:
47+
- **Use the logged-in Windows account** — uses your current Windows credentials for integrated authentication (NTLM or Kerberos).
48+
- **Use alternate credentials** — provide a **username** and **password** for the proxy.
49+
1. Select **OK**.
50+
1. Restart Visual Studio.
51+
52+
> [!TIP]
53+
> If your proxy requires Basic authentication, choose **Use alternate credentials** and enter the credentials your proxy expects.
54+
55+
## Related content
56+
57+
- [Troubleshoot proxy and firewall issues in Visual Studio](proxy-firewall-troubleshoot.md)
58+
- [Install and use Visual Studio behind a firewall or proxy server](../../install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md)

docs/ide/sign-in-access-multiple-accounts.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ Proxy credentials are stored in the Windows Credential Manager and are used as n
4848
> If the proxy server starts or changes after opening Visual Studio, the **Account Settings** dialog will show a warning, but you'll need to restart Visual Studio to get the proxy credentials prompt.
4949
5050
::: moniker-end
51+
52+
::: moniker range="visualstudio"
53+
54+
> [!TIP]
55+
> You can also configure proxy settings directly in Visual Studio through **Tools** > **Options** > **Proxy Settings**. For more information, see [Configure proxy settings in Visual Studio](reference/proxy-settings.md).
56+
57+
::: moniker-end

docs/install/install-and-use-visual-studio-behind-a-firewall-or-proxy-server.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ Here are a few more support options:
154154

155155
## Related content
156156

157+
* [Configure proxy settings in Visual Studio](../ide/reference/proxy-settings.md)
158+
* [Troubleshoot proxy and firewall issues in Visual Studio](../ide/reference/proxy-firewall-troubleshoot.md)
157159
* [Connectivity requirements for Live Share](/visualstudio/liveshare/reference/connectivity/)
158160
* [Create and maintain a network installation of Visual Studio](create-a-network-installation-of-visual-studio.md)
159161
* [Troubleshoot network-related errors in Visual Studio](/troubleshoot/developer/visualstudio/installation/troubleshoot-network-related-errors)

docs/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,8 @@
971971
href: ide/visual-studio-performance-tips-and-tricks.md
972972
- name: Reference
973973
items:
974+
- name: Configure proxy settings
975+
href: ide/reference/proxy-settings.md
974976
- name: Troubleshoot proxy and firewall issues
975977
href: ide/reference/proxy-firewall-troubleshoot.md
976978
- name: Keyboard shortcuts & commands

subscriptions/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"exclude": [
1212
"**/obj/**",
13-
"**/includes/**",
13+
"includes/**",
1414
"README.md",
1515
"LICENSE",
1616
"LICENSE-CODE",

0 commit comments

Comments
 (0)