Skip to content

Commit ead0b71

Browse files
authored
Merge pull request #10403 from MicrosoftDocs/main638621318679018250sync_temp
Repo sync for protected branch
2 parents 8ed3a75 + 49e1501 commit ead0b71

29 files changed

+138
-86
lines changed

docs/designers/scaling-percentage-display-setting-message.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ When you open a form in **Windows Forms Designer** on an HDPI monitor, Visual St
1616

1717
## Why this message appears and what to do about it
1818

19+
If your Windows Forms designer UI looks fine, you can ignore this message or [disable it](#disable-the-notification).
20+
21+
If the display doesn't look right, try the link to restart Visual Studio and see if that solves the problem.
22+
23+
If you want to understand more, continue reading.
24+
1925
Here's why the message appears:
2026

2127
- Windows Forms Designer is [DPI-unaware](disable-dpi-awareness.md#windows-forms-designer-is-dpi-unaware), while Visual Studio is DPI-aware.
Loading
Loading

docs/ide/visual-studio-whole-line-completions.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,19 @@ When the user has an item from the IntelliSense list selected, IntelliCode uses
4646

4747
### Accept or dismiss whole-line autocompletions
4848

49-
By default, the `Tab` key is used to accept whole-line autocompletions. To change the default accept key, go to Tools -> Options -> IntelliCode -> Completions for whole lines of code. Enable the setting named `Apply completions for whole lines on right arrow`.
49+
By default, the `Tab` key is used to accept whole-line autocompletions. To change the default accept key to the right arrow, go to **Tools** > **Options** > **IntelliCode** -> **Advanced**.
5050

51-
![Screenshot of Settings menu to change setting to make right arrow as accept character.](media/intellicode/intellicode-visual-studio-whole-line-completions-change-to-right-arrow.png)
52-
53-
Doing so changes the accept key from `Tab` to the right arrow `->`
51+
:::moniker range="<=vs-2019"
52+
Enable the setting named `Apply completions for whole lines on right arrow`.
5453

5554
![Screenshot of Settings menu to change right arrow to accept whole-line autocompletion.](media/intellicode/intellicode-visual-studio-whole-line-completions-right-arrow.png)
55+
:::moniker-end
56+
57+
:::moniker range=">=vs-2022"
58+
Enable the setting `Apply whole line completions on right arrow`.
59+
60+
![Screenshot of Settings menu to change right arrow to accept whole-line autocompletion.](media/vs-2022/intellicode-tools-options-right-arrow.png)
61+
:::moniker-end
5662

5763
To dismiss whole-line autocompletions, the `ESC` or `Delete` keys can be used.
5864

@@ -64,6 +70,8 @@ To dismiss whole-line autocompletions, the `ESC` or `Delete` keys can be used.
6470

6571
You can control the whole-line autocompletions feature using the small purple light bulb shown at the bottom right of the editor, next to the zoom control.
6672

73+
:::moniker range="<=vs-2019"
74+
6775
![Screenshot of setting for turning IntelliCode whole-Line autocompletions on or off.](media/intellicode/intellicode-visual-studio-whole-line-completions-quiet-mode-small.png)
6876

6977
The first setting, `Show completions for lines of code` allows you to turn whole-line autocompletions on or off.
@@ -72,6 +80,25 @@ The second setting, `Wait for pauses in typing before showing line completions`,
7280

7381
The third setting, `Show completions on new lines` can be turned on or off depending on whether you want to see whole-line autocompletions when you enter a new line, that is, by pressing `Return` or `Enter`.
7482

83+
:::moniker-end
84+
:::moniker range=">=vs-2022"
85+
86+
In **Tools**, **Options**, **IntelliCode**, **General**, the setting `Show inline completions` allows you to turn whole-line autocompletions on or off.
87+
88+
The **Advanced** tab has further options.
89+
90+
![Screenshot of setting for turning IntelliCode whole Line autocompletions on or off.](media/vs-2022/intellicode-tools-options.png)
91+
92+
The first setting, `Apply whole line completions on right arrow` was discussed previously in this article.
93+
94+
The second setting, `Disable suggestions while debugging` allows you to minimize distractions when debugging.
95+
96+
The third setting, `Show inline completions on new lines` can be turned on or off depending on whether you want to see whole-line autocompletions when you enter a new line, that is, by pressing `Return` or `Enter`.
97+
98+
The last setting, `Wait for pauses in typing before showing line completions`, when enabled, makes whole-line autocompletions only show up if you pause typing. You might prefer this option if you find the whole-line autocompletions distracting in the default mode.
99+
100+
:::moniker-end
101+
75102
## Provide feedback
76103

77104
Click on the Feedback icon on the top right of Visual Studio to file a feedback ticket. Optionally, you can upload your IntelliCode log files to the feedback ticket in order to provide us with additional context. Make sure you review the contents of the log files and address any privacy concerns you may have. This data, when shared with us, will not be used for any purpose other than providing support assistance to you. You can find the logs at `%LOCALAPPDATA%\Temp\VSFeedbackIntelliCodeLogs`

docs/profiling/cpu-insights.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
---
22
title: Diagnose high latency with CPU Insights
33
description: Use CPU Insights to diagnose and optimize your code's performance
4-
ms.date: 01/10/2023
4+
ms.date: 09/06/2024
55
ms.topic: how-to
66
author: mikejo5000
77
ms.author: mikejo
88
manager: mijacobs
99
ms.subservice: debug-diagnostics
1010
monikerRange: '>= vs-2022'
1111
---
12+
1213
# Diagnose high latency with CPU Insights
1314

1415
CPU insights is a sub-feature of the CPU Usage tool that shows common potential latency issues like concatenating strings inefficiently.
1516

16-
## View top insights
17+
## View Auto Insights
1718

1819
The **Top Insights** section in the CPU Usage tool shows quick CPU details, insights, and suggestions in the description so that you can continue diagnosing the issue. The **Learn more** link shows you in-depth documentation that explains your issue. If you need more information, **View source code** shows more details. Once selected, you can see the call tree view, showing the process, functions, and which callers use the most CPU.
1920

20-
![Screenshot showing Top Insights selected.](./media/vs-2022/top-insights.png "Top Insights selected")
21+
![Screenshot showing Autio Insights selected.](./media/vs-2022/top-insights.png)
2122

2223
## View top functions
2324

2425
On the summary page under **Top Functions**, you can find the top functions called with the time spent in descending order. **Total CPU** time is the amount of time spent inside a function, including any functions it calls, whereas **Self CPU** is time spent exclusively in the function.
2526

27+
![Screenshot showing Top Functions selected.](./media/vs-2022/top-functions.png)
28+
2629
## View the hot path
2730

2831
**Hot Path** shows where most of the CPU time was being spent in your application and helps focus investigation on the area that would have the most impact. Analyzing this code path by using other tools in the Performance Profiler can help identify ways to improve the code as well. For example, it may help identify how to minimize allocations on the hot path to reduce GC frequency and time spent in GC.
@@ -32,7 +35,7 @@ On the summary page under **Top Functions**, you can find the top functions call
3235
::: moniker range=">= vs-2022"
3336
## Get AI assistance
3437

35-
If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while you're looking at CPU insights. Just look for the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In these scenarios, Copilot already knows the context for your questions, so you don't need to provide context yourself in chat. For more information, see [Debug with Copilot](../debugger/debug-with-copilot.md).
38+
If you have [Copilot](../ide/visual-studio-github-copilot-extension.md), you can get AI assistance while you're looking at CPU Auto Insights. Just look for the **Ask Copilot** ![Screenshot of Ask Copilot button.](../debugger/media/vs-2022/debug-with-copilot-ask-copilot-button.png) button. In these scenarios, Copilot already knows the context for your questions, so you don't need to provide context yourself in chat. For more information, see [Debug with Copilot](../debugger/debug-with-copilot.md).
3639
::: moniker-end
3740

3841
## Related content

docs/test/microsoft-code-coverage-console-tool.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Microsoft.CodeCoverage.Console tool
33
description: Use the Microsoft.CodeCoverage.Console tool to collect code coverage for C++ and C# code in nontest scenarios, and merge and convert code coverage reports.
4-
ms.date: 04/10/2024
4+
ms.date: 09/16/2024
55
ms.topic: conceptual
66
ms.author: mikejo
77
manager: mijacobs
@@ -12,7 +12,7 @@ author: mikejo5000
1212

1313
Microsoft.CodeCoverage.Console is a command-line tool. You can use it to collect code coverage for C++ and C# code. It supports also merging and converting code coverage reports. This tool can be used to collect code coverage in non-test scenarios (for example, for a simple console application).
1414

15-
Microsoft.CodeCoverage.Console is available in Visual Studio 2022 17.3 under folder `Common7\IDE\Extensions\Microsoft\CodeCoverage.Console`. You can use it in a Developer Command Prompt and a Developer PowerShell:
15+
Microsoft.CodeCoverage.Console is available in Visual Studio 2022 17.3 under the folder `Common7\IDE\Extensions\Microsoft\CodeCoverage.Console`. You can use it in a Developer Command Prompt and a Developer PowerShell:
1616

1717
>[!NOTE]
1818
> The tool is available only with Visual Studio Enterprise. For .NET code coverage, you can alternatively use the command-line tool, [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage).
@@ -42,9 +42,11 @@ Commands:
4242

4343
## Collect, connect, shutdown, merge and snapshot commands
4444

45-
The Microsoft.CodeCoverage.Console tool is extension to the [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage) dotnet tool. The documentation for collect, connect, shutdown, merge and snapshot commands can be found [here](/dotnet/core/additional-tools/dotnet-coverage). Additionally, the Microsoft.CodeCoverage.Console tool supports collecting code coverage for C++ code.
45+
The Microsoft.CodeCoverage.Console tool is extension to the [dotnet-coverage](/dotnet/core/additional-tools/dotnet-coverage) dotnet tool. The documentation for collect, connect, shutdown, merge, and snapshot commands can be found [here](/dotnet/core/additional-tools/dotnet-coverage).
4646

4747
::: moniker range=">=vs-2022"
48+
Starting in Visual Studio 2022, Microsoft.CodeCoverage.Console supports additional security features to enable collecting ASP.NET code coverage data from IIS. Additionally, the Microsoft.CodeCoverage.Console tool supports collecting code coverage for C++ code. The `instrument` command is specific to these scenarios.
49+
4850
## Instrument command
4951

5052
The instrument command is used to instrument native or managed binary on disk.
@@ -73,7 +75,7 @@ Microsoft.CodeCoverage.Console instrument
7375

7476
* **`-id|--session-id <session-id>`**
7577

76-
Specifies the code coverage session ID. If not provided, the tool will generate a random GUID.
78+
Specifies the code coverage session ID. If not provided, the tool generates a random GUID.
7779

7880
* **`-o|--output <output>`**
7981

@@ -96,9 +98,9 @@ D:\ConsoleApplication\x64\Debug> .\ConsoleApplication.exe
9698
Hello World!
9799
```
98100

99-
### Using only collect command with configuration
101+
### Code coverage using collect command with configuration file
100102

101-
If you don't want to use the `instrument` command, then the files to be instrumented need to be specified in a configuration file as follows:
103+
If you don't want to use the `instrument` command, you can instead use a configuration file to specify the files to instrument, as follows:
102104

103105
```xml
104106
<ModulePaths>
@@ -108,7 +110,7 @@ If you don't want to use the `instrument` command, then the files to be instrume
108110
</ModulePaths>
109111
```
110112

111-
Then you can collect code coverage as follows:
113+
Then, collect code coverage as follows:
112114

113115
```console
114116
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console collect --settings coverage.config .\ConsoleApplication.exe
@@ -117,16 +119,16 @@ Hello World!
117119
Code coverage results: output.coverage.
118120
```
119121

120-
### Using instrument and collect commands
122+
### Code coverage using instrument and collect commands
121123

122-
In this case, first binary needs to be instrumented as follows:
124+
Before collecting code coverage data, first instrument the binary as follows:
123125

124126
```console
125127
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console instrument ConsoleApplication.exe
126128
Input file successfully instrumented.
127129
```
128130

129-
Then you can collect code coverage as follows:
131+
Then, collect code coverage as follows:
130132

131133
```console
132134
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console collect .\ConsoleApplication.exe
@@ -135,9 +137,9 @@ Hello World!
135137
Code coverage results: output.coverage.
136138
```
137139

138-
### Using instrument command and collect command in server mode
140+
### Code coverage using instrument command and collect command in server mode
139141

140-
In this case, you can completely separate coverage collection from running your application. First, instrument your binary as follows:
142+
Using this method, you can separate code coverage collection from running your application. First, instrument your binary as follows:
141143

142144
```console
143145
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console instrument --session-id 73c34ce5-501c-4369-a4cb-04d31427d1a4 ConsoleApplication.exe
@@ -147,14 +149,14 @@ Input file successfully instrumented.
147149
> [!NOTE]
148150
> Session ID needs to be used in this scenario to make sure that the application can connect and provide data to external collector.
149151
150-
In the second step, you need to start coverage collector as follows:
152+
In the second step, you need to start the code coverage collector as follows:
151153

152154
```console
153155
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console collect --session-id 73c34ce5-501c-4369-a4cb-04d31427d1a4 --server-mode
154156
SessionId: 73c34ce5-501c-4369-a4cb-04d31427d1a4
155157
```
156158

157-
Then the application can be started as follows:
159+
Then, start the application as follows:
158160

159161
```console
160162
D:\ConsoleApplication\x64\Debug>.\ConsoleApplication.exe
@@ -163,7 +165,7 @@ Hello World!
163165
> [!NOTE]
164166
> Instrumented native binary contains a reference to `static_covrun64.dll`. Make sure that this file is next to the instrumented binary or the directory where `static_covrun64.dll` is located is listed in the `Path` environment variable. The `collect` and `connect` commands are adding proper directories to `Path` automatically.
165167
166-
Finally, the collector can be closed as follows:
168+
Finally, close the collector as follows:
167169

168170
```console
169171
D:\ConsoleApplication\x64\Debug>Microsoft.CodeCoverage.Console shutdown 73c34ce5-501c-4369-a4cb-04d31427d1a4

0 commit comments

Comments
 (0)