Skip to content

Commit 0fa7fde

Browse files
committed
Merged main into live
2 parents 64c09fb + 3440e7d commit 0fa7fde

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
lines changed

docs/ide/copilot-chat-context.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ To get started using GitHub Copilot Chat in Visual Studio, you need:
3636

3737
Support for GitHub Copilot Chat will be provided by GitHub and can be reached at https://support.github.com.
3838

39+
## Prompting guidance
40+
41+
The guided chat experience in Visual Studio 17.12 and later helps refine your prompts to clarify context for better answers. GitHub Copilot Chat now guides you with clarifying questions when context is unclear.
42+
43+
:::image type="content" source="media/vs-2022/copilot-chat-context/copilot-chat-guided-chat.png" alt-text="Screenshot of guided chat experience with GitHub Copilot Chat.":::
44+
3945
## <a name="slash-commands"></a>Use slash commands in Copilot Chat for common tasks
4046

4147
Slash commands in Copilot Chat help you set the intent quickly for common development tasks. By using specific slash commands to form your question, you can get better answers without having to write out long questions.
Loading
Loading
Loading
Loading

docs/ide/reference/trust-settings.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ghogen
55
ms.author: ghogen
66
manager: mijacobs
77
ms.subservice: general-ide
8-
ms.date: 10/27/2021
8+
ms.date: 11/12/2024
99
ms.topic: reference
1010
f1_keywords:
1111
- VS.ToolsOptionsPages.Environment.PathTrustOptions
@@ -20,26 +20,42 @@ helpviewer_keywords:
2020

2121
::: moniker range=">=vs-2022"
2222

23-
In Visual Studio 2022, we've revamped the **Trust Settings** functionality to show a warning whenever untrusted code is opened in the IDE.
23+
In Visual Studio 2022, we've revamped the **Trust Settings** functionality to show a warning whenever untrusted code is opened in the IDE.
24+
With Visual Studio 2022 version 17.12 and later, Mark of the web (MotW) security warnings are now integrated into the overall trust functionality.
2425

2526
Software developers are increasingly being targeted by malware. The new **Trust Settings** functionality aims to raise awareness about the risks of handling unfamiliar code, and helps protect against malicious actors, who are targeting scenarios ranging from opening content (for example, repositories, solutions, projects, and files) to building and running applications with Visual Studio.
2627

27-
The **Trusted locations** feature is not enabled by default.
28+
By default, Visual Studio displays a security warning when the [**Mark of the Web** identifier](#when-opening-content-from-the-web-mark-of-the-web) is detected. However, this default behavior can be customized to [always show a security warning](#always-require-a-trust-decision), regardless of the content's original location.
2829

29-
## Enable trusted locations
30+
## Customize trust settings
3031

31-
To enable the **Trusted locations** feature, follow these steps:
32+
You can customize the trust policies to configure the security settings for opening content in Visual Studio.
3233

33-
1. Open **Tools** > **Options** > **Trust Settings**.
34+
### When opening content from the web (Mark of the Web)
35+
36+
Visual Studio 2022 version 17.12 and later now shows a security warning when you try to open content tagged with the Mark of the Web (MotW) identifier. This new trust-related alert informs you of the possible security risks associated with opening files from potentially unsafe sources, such as internet downloads.
37+
38+
:::image type="content" source="media/vs-2022/web-content-alert.png" alt-text="Screenshot showing the mark of the web alert.":::
39+
40+
You can modify the default trust experience from **Tools** > **Options** > **Environment** > **Security**.
41+
42+
:::image type="content" source="media/vs-2022/web-content-trust-settings.png" alt-text="Screenshot showing how to modify the Security options related to opening content from the web.":::
3443

35-
2. In the **Trust Policies** pane, select **Require a trust decision before opening content**.
44+
The Mark of the Web is a security feature used by Windows to identify files that originate from the internet. When you download a file, Windows adds this identifier to the file's metadata, signaling that the content may be unsafe to execute or open. Visual Studio 2022 uses this identifier to protect your development environment from potential threats.
45+
46+
### Always require a trust decision
47+
48+
When **Always require a trust decision** is enabled, Visual Studio detects if you're attempting to open content that isn't designated as *trusted* and shows a dialog that warns you about the security implications.
49+
To enable the **Always require a trust decision** feature, follow these steps:
50+
51+
1. Open **Tools** > **Options** > **Environment** > **Security**.
52+
53+
2. In the **Trust Policies** pane, select **Always require a trust decision** from the **Require a trust decision** dropdown.
3654

3755
:::image type="content" source="media/vs-2022/trusted-settings-options-dialog.png" alt-text="Screenshot showing how to enable trusted locations by using the Trust Settings options.":::
3856

3957
> [!NOTE]
40-
> The **Skip trust checks for temporary locations Visual Studio creates automatically** option is enabled by default but it has no impact unless the **Require a trust decision before opening content** option is also enabled.
41-
42-
After it's enabled, Visual Studio detects if you're attempting to open content that isn't designated as *trusted* and shows a new dialog that warns you about the security implications.
58+
> The **Skip trust checks for temporary locations Visual Studio creates automatically** option is not enabled by default. It has no impact unless the **Always require a trust decision** option is also enabled.
4359
4460
:::image type="content" source="media/vs-2022/trusted-settings-warning-dialog.png" alt-text="Screenshot of the Trust Settings warning dialog.":::
4561

@@ -57,11 +73,11 @@ After you've enabled the feature, all content that you open with Visual Studio 2
5773

5874
1. Select the **Trust and continue** button on the dialog.
5975

60-
Visual Studio adds the folder path to the **Trusted locations** list at **Tools** > **Options** > **Trust Settings**.
76+
Visual Studio adds the folder path to the **Trusted locations** list at **Tools** > **Options** > **Security**.
6177

6278
You can also add folders to **Trusted locations** from the **Trust Settings** dialog. Here's how:
6379

64-
1. Open **Tools** > **Options** > **Trust Settings**. You can also open **Trust Settings** by selecting **Manage trust settings** from the *warning* dialog.
80+
1. Open **Tools** > **Options** > **Security**. You can also open it by selecting **Manage trust settings** from the *warning* dialog.
6581

6682
2. Select **Add a Folder** in the right-hand **Trust Policies** pane.
6783

0 commit comments

Comments
 (0)