Skip to content

Commit d0ffbd8

Browse files
committed
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 4f00ea2 + 9b51c12 commit d0ffbd8

6 files changed

+34
-6
lines changed

docs/ide/reference/options-text-editor-advanced.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Options, Text Editor, Advanced
33
description: Learn how to use the Advanced dialog box to change global settings for the Visual Studio text editor.
4-
ms.date: 08/09/2022
4+
ms.date: 09/28/2022
55
ms.topic: reference
66
f1_keywords:
77
- VS.ToolsOptionsPages.Text_Editor.Advanced
@@ -95,7 +95,10 @@ Select this option to disable the new [multi-caret selection](../finding-and-rep
9595
9696
## Use adaptive formatting
9797

98-
Based on your most recently updated file, Visual Studio recognizes whether you prefer to use tabs or spaces for code indentation. The adaptive formatting option is selected by default. When unselected, Visual Studio uses the settings in **Tools** > **Options** > **Text Editor** > **All Languages** > **[Tabs](options-text-editor-all-languages-tabs.md)** instead.
98+
Based on your most recently updated file, Visual Studio recognizes whether you prefer to use tabs or spaces to indent code. The adaptive formatting option is selected by default. When unselected, Visual Studio uses the settings in **Tools** > **Options** > **Text Editor** > **All Languages** > **[Tabs](options-text-editor-all-languages-tabs.md)** instead.
99+
100+
> [!TIP]
101+
> You can also change how Visual Studio manages your preferred indent style by using an .*editorconfig* file. For more information, see [Create portable, custom editor settings with EditorConfig](../create-portable-custom-editor-options.md).
99102
100103
## Fallback support for C#, C++, Java, and TypeScript GoTo symbol navigation
101104

docs/ide/reference/options-text-editor-all-languages-tabs.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Options, Text Editor, All Languages, Tabs
33
description: Learn how to use the Tabs page in the All Languages section to change the default behavior of the code editor tabs within Visual Studio.
44
ms.custom: SEO-VS-2020
5-
ms.date: 11/04/2016
5+
ms.date: 09/28/2022
66
ms.topic: reference
77
f1_keywords:
88
- VS.ToolsOptionsPages.Text_Editor.All_Languages.Tabs
@@ -90,6 +90,9 @@ Keep tabs
9090

9191
When selected, indent operations insert as many TAB characters as possible. Each TAB character fills the number of spaces specified in **Tab size**. If the **Indent size** is not an even multiple of the **Tab size**, space characters are added to fill in the difference.
9292

93+
> [!TIP]
94+
> Adaptive formatting might override your custom tabs settings. You can turn off adaptive formatting by toggling the **[Use adaptive formatting](options-text-editor-advanced.md#use-adaptive-formatting-1)** option in **Text Editor** > **[Advanced](options-text-editor-advanced.md)**. You can also change how Visual Studio manages your preferred indent style by using an .*[editorconfig](../create-portable-custom-editor-options.md)* file.
95+
9396
## See also
9497

9598
- [Options, Text Editor, All Languages](../../ide/reference/options-text-editor-all-languages.md)

docs/profiling/events-viewer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ ms.workload:
1616

1717
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
1818

19+
In the Performance Profiler, you can collect diagnostic info while your app is running, and then examine the collected information after the app stops like a post-mortem analysis.
20+
1921
The generic events viewer shows app activity through a list of events like module load, thread start, and system configuration. This view helps you better diagnose how your app is doing within the Visual Studio profiler.
2022

2123
## Setup
@@ -64,7 +66,7 @@ All columns except for the **Text** column are sortable.
6466

6567
![The event viewer trace](../profiling/media/eventviewertrace.png "The event viewer trace")
6668

67-
The event viewer displays up to 20,000 events at a time. To focus on the events of interest, you can filter the display of events by selecting the event filter. You can also see what percentage of the total number of events occurred for each provider. Hover over a single event filter to see a tooltip that shows the:
69+
The event viewer displays up to 20,000 events at a time. To focus on the events of interest, you can filter the display of events by selecting the Event filter. You can also see what percentage of the total number of events occurred for each provider, and this information gives you a breakdown of where your time is being spent. Hover over a single event filter to see a tooltip that shows the:
6870

6971
- Event name
7072
- Provider

docs/profiling/profiling-feature-tour.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ The **CPU Usage** view shows you a list of functions ordered by longest running,
136136
::: moniker-end
137137

138138
::: moniker range=">=vs-2022"
139-
Double-click on a function that you are interested in, and you will see a more detailed "Call tree" view, with the selected function highlighted. The table shows columns with data such as the time spent in the function, including called functions (**Total CPU**), and a second column that shows the time spent in a function, excluding called functions (**Self CPU**). This data can help you evaluate whether the function itself is a performance bottleneck.
139+
Double-click on a function that you are interested in, and you will see a more detailed **Call tree** view, with the selected function highlighted. The table shows columns with data such as the time spent in the function, including called functions (**Total CPU**), and a second column that shows the time spent in a function, excluding called functions (**Self CPU**). This data can help you evaluate whether the function itself is a performance bottleneck.
140+
141+
> [!TIP]
142+
> The Visual Studio profiler supports both collecting and viewing traces. The profiler can also view traces that have been collected previously by other tools, such as dotnet-trace. Dotnet-trace produces sampling results, not an instrumented trace. For more information, see [dotnet-trace](/dotnet/core/diagnostics/dotnet-trace).
140143
141144
![Diagnostic Tools caller callee "butterfly" view](../profiling/media/vs-2022/prof-tour-call-tree-view.png "Diagnostic Tools Caller Callee View")
142145
::: moniker-end

docs/profiling/understanding-performance-collection-methods-perf-profiler.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ This document outlines the data collection methods that tools within the Visual
2121

2222
## Sampling
2323

24-
Sampling methods for profiling collect statistical data about the work that is performed by an application during a profiling run. Data collection is done by collecting information on the application at a regular interval or sampling frequency such as every millisecond and then analyzing this data to create a model of where time was spent in the application. The sampling method is lightweight and has little effect on the execution of the application being profiled. Tools in the Performance Profiler that utilize the sampling method include the [CPU Usage](../profiling/cpu-usage.md) tool.
24+
Sampling collects statistical data about the work that is performed by an application during profiling and it’s a good starting place to find areas to speed up your application. At specified intervals, the Sampling method collects information about the functions that are executing in your application. Data collection is done by collecting information on the application at a regular interval or sampling frequency such as every millisecond. The collected data is analyzed to create a model of where the time was spent in the application. If you need accurate measurements of call times or are looking for performance issues in an application for the first time, then you may want to use sampling.
25+
26+
Sampling has less accuracy in the number of calls, but is low cost to the profiler and has little effect on the execution of the application being profiled. Tools in the Performance Profiler that utilize the sampling method include the [CPU Usage](../profiling/cpu-usage.md) tool.
27+
28+
After you finish data collection, the CPU Usage tool analyzes the captured data and displays the report.
29+
30+
## Tracing
31+
32+
Tracing provides better information on how often a method was executed. If you need accurate measures of call numbers, use tracing.
33+
Tracing can have a larger impact on the performance of your code during collection, but sampling has only a small overhead. Additionally, tracing can be slower to analyze because it takes longer to view the data after collection.
2534

2635
## Instrumentation
2736

mac/install-behind-a-firewall-or-proxy-server.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ Because the Visual Studio for Mac Installer downloads from various domains and d
4141
| dl.xamarin.com | Installer Packages|
4242
| dc.services.visualstudio.com| Crash Reporting |
4343

44+
### NuGet
45+
46+
| Domain | Port(s)|Purpose|
47+
| ----------------------|------------------|------------------|
48+
| api.nuget.org | 80/443|NuGet API|
49+
4450
### Third party domains
4551

4652
| Domain| Purpose |
@@ -63,6 +69,8 @@ To make sure that you have access to every feature that you need in Visual Studi
6369
| addins.monodevelop.com | 80/443| Extension Services |
6470
| visualstudio-devdiv-c2s.msedge.net | 80/443| Experimental Feature and Notifications |
6571
| targetednotifications.azurewebsites.net| 80/443| Used to filter a global list of notifications to a list that is applicable only to specific types of machines/usage scenarios|
72+
| nw-umwatson.events.data.microsoft.com | Crash and Error Reporting |
73+
| vortex.data.microsoft.com | Crash and Error Reporting |
6674

6775
### Identity
6876

0 commit comments

Comments
 (0)