Skip to content

Repo sync for protected branch #10399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/ide/outlining.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Collapse and expand regions of code
description: Use the expand and collapse commands in the Visual Studio integrated development environment (IDE) to work in outline mode.
ms.date: 05/31/2024
ms.date: 9/13/2024
ms.topic: conceptual
helpviewer_keywords:
- outlining
Expand All @@ -28,7 +28,7 @@ To collapse an outlining region, double-click any line in the region on the outl

:::image type="content" source="media/outlining-example-2022.png" alt-text="Screenshot of an example of collapsed code that shows the outlining margin and an example of the expanded code visible from a tooltip.":::

Regions in the outlining margin are also highlighted when you hover over the margin with the mouse. The default highlighting color might seem rather faint in some color configurations. You can change it in **Tools** > **Options** > **Environment** > **Fonts and Colors** > **Collapsible Region**.
Regions in the outlining margin are also highlighted when you hover over the margin with the mouse. The default highlighting color might seem rather faint in some color configurations. You can change it in **Tools** > **Options** > **Environment** > **Fonts and Colors** > **Display items** > **Collapsible Region**.

When you work in outlined code, you can expand the sections you want to work on, collapse them when you're done, and then move to other sections. When you don't want to have outlining displayed, you can use the **Stop Outlining** command to remove the outline information without disturbing your underlying code.

Expand Down
4 changes: 2 additions & 2 deletions docs/ide/visual-studio-github-copilot-admin.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Admin controls for GitHub Copilot in Visual Studio
description: Learn about the new features for administrators in GitHub Copilot for Visual Studio that enable admins to manage Copilot effectively.
ms.date: 8/27/2024
ms.date: 9/12/2024
ms.topic: how-to
author: anandmeg
ms.author: meghaanand
Expand All @@ -13,7 +13,7 @@ monikerRange: vs-2022

# Admin controls for GitHub Copilot

Visual Studio 2022 introduces new features for administrators to configure and manage GitHub Copilot for their enterprise effectively. These features provide administrators greater control over the use of Copilot within their organization. Admins can disable Copilot
Visual Studio 2022 introduces new features for administrators to configure and manage GitHub Copilot for their enterprise effectively. These features provide administrators greater control over the use of Copilot within their organization. Admins can disable Copilot for individual accounts or disable it altogether, and configure content exclusion to prevent certain files from being available to Copilot in Visual Studio.

In this article, you learn how to:
- [Disable Copilot](#disabling-copilot-for-individual-enterprise-visual-studio-accounts)
Expand Down
4 changes: 2 additions & 2 deletions docs/ide/visual-studio-github-copilot-install-and-states.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Install and manage GitHub Copilot in Visual Studio
description: Learn how to install GitHub Copilot to get GitHub Copilot Completions and Chat in Visual Studio. Use the Copilot badge in the IDE to access options to manage or troubleshoot your Copilot state.
ms.date: 7/29/2024
ms.date: 9/12/2024
ms.topic: install-set-up-deploy
author: anandmeg
ms.author: meghaanand
Expand Down Expand Up @@ -112,7 +112,7 @@ If [Copilot is disabled by your administrator](visual-studio-github-copilot-trou

### Copilot is unavailable

If Copilot is installed but unavailable for use, it may be due to network connectivity issues, server-side technical problems, or an expired service plan. In this state, Copilot doesn't provide its usual services until the external issues are resolved.
If Copilot is installed but unavailable for use, it may be due to [network connectivity issues](visual-studio-github-copilot-troubleshoot.md#network-issues), [server-side technical problems](visual-studio-github-copilot-troubleshoot.md#copilot-service-is-unavailable), or an expired service plan. In this state, Copilot doesn't provide its usual services until the external issues are resolved.

Select **Copilot is unreachable** in the dropdown menu to open the **Troubleshooting** page on diagnosing and resolving common network errors with GitHub Copilot. When the issue is resolved and you're signed in with an active subscription, the Copilot status icon updates to [active](#copilot-is-active).

Expand Down
8 changes: 4 additions & 4 deletions docs/python/configure-web-apps-for-iis-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The `web.config` file for your Python application instructs the IIS web server (

If your project does not already contain a `web.config` file, you can add one by right-clicking the project directory, selecting **Add > New Item** and searching for `web.config` or creating a blank `web.config` XML file.

### Configure the HttpPlatformHandler
### Option 1 : Configure the HttpPlatformHandler

The HttpPlatform module passes socket connections directly to a standalone Python process. This pass-through allows you to run any web server you like, but it requires a startup script that runs a local web server. This approach is commonly done by using a Python web framework, such as Flask or Django. You specify the script in the `<httpPlatform>` element of the `web.config` file. The `processPath` attribute points to the site extension's Python interpreter. The `arguments` attribute points to your startup script that runs a local web server, in this case `runserver.py`, and any arguments you want to provide:

Expand All @@ -56,12 +56,12 @@ The HttpPlatform module passes socket connections directly to a standalone Pytho

In this example, the `HTTP_PLATFORM_PORT` environment variable contains the port that your local server should listen on for connections from `localhost`. This example also shows how to create another environment variable, `SERVER_PORT`. You can create and assign environment variables as needed.

### Configure the FastCGI handler
### Option 2 : Configure the FastCGI handler

FastCGI is an interface that works at the request level. IIS receives incoming connections and forwards each request to a WSGI app running in one or more persistent Python processes.
Alternatively, you can use FastCGI to configure your apps. FastCGI is an interface that works at the request level. IIS receives incoming connections and forwards each request to a WSGI app running in one or more persistent Python processes.

> [!NOTE]
> We recommend using **HttpPlatformHandler** to configure your apps, as the [WFastCGI](https://pypi.org/project/wfastcgi/) project is no longer maintained.
> Although you can set your project up using FastCGI, we recommend using **HttpPlatformHandler** to configure your apps, as the [WFastCGI](https://pypi.org/project/wfastcgi/) project is no longer maintained and may result in bugs.

To use FastCGI, first install and configure the wfastcgi package as described in [pypi.org/project/wfastcgi/](https://pypi.io/project/wfastcgi).

Expand Down
2 changes: 2 additions & 0 deletions docs/python/debugging-python-in-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ The following table summarizes these commands and provides the keyboard shortcut

| Command | Shortcut | Description |
| --- | --- | --- |
| **Stop** | **Shift + F5** | Stop the debugging session. |
| **Restart** | **Ctrl + Shift + F5** | Restart the current debugging session. |
| **Continue** | **F5** | Run code until you reach the next breakpoint. |
| **Step Into** | **F11** | Run the next statement and stop. If the next statement is a call to a function, the debugger stops at the first line of the called function. |
| **Step Over** | **F10** | Run the next statement, including making a call to a function (running all its code) and applying any return value. This command allows you to easily skip functions that you don't need to debug. |
Expand Down
3 changes: 3 additions & 0 deletions docs/python/installing-python-support-in-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Python support is available only on Visual Studio for Windows. On Mac and Linux,

- Visual Studio on Windows. To install the product, follow the steps in [Install Visual Studio](../install/install-visual-studio.md).

> [!NOTE]
> You also need a Python interpreter installed in order to work with Python in Visual Studio. We recommend installing one from [python.org](https://www.python.org/downloads/) or Anaconda. For more information on Python interpreters, see [Installing Python Interpreters](installing-python-interpreters.md).

## Download and install the Python workload

Complete the following steps to download and install the Python workload.
Expand Down
2 changes: 1 addition & 1 deletion docs/python/profiling-python-code-in-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Visual Studio for Mac isn't supported. For more information, see [What's happeni

## Use profiler with CPython-based interpreter

When you profile a Python application, Visual Studio collects data for the lifetime of the process.
When you profile a Python application, Visual Studio collects data for the lifetime of the process, measured in milliseconds (ms).

Follow these steps to start working with the profiling features in Visual Studio:

Expand Down