You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ide/reference/options-text-editor-csharp-advanced.md
+64-1Lines changed: 64 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,69 @@ Use the **Advanced** options page to modify the settings for editor formatting,
26
26
27
27
Enables code analysis on all files in the solution, not just open code files. For more information, see [Full solution analysis](../../code-quality/how-to-enable-and-disable-full-solution-analysis-for-managed-code.md).
28
28
29
+
## Using Directives
30
+
31
+
- Place 'System' directives first when sorting usings
32
+
33
+
When selected, the **Remove and Sort Usings** command in the right-click menu sorts the `using` directives and places the 'System' namespaces at the top of the list
34
+
35
+
Before sorting:
36
+
37
+
```csharp
38
+
usingAutoMapper;
39
+
usingFluentValidation;
40
+
usingSystem.Collections.Generic;
41
+
usingSystem.Linq;
42
+
usingNewtonsoft.Json;
43
+
usingSystem;
44
+
```
45
+
46
+
After sorting:
47
+
48
+
```csharp
49
+
usingSystem;
50
+
usingSystem.Collections.Generic;
51
+
usingSystem.Linq;
52
+
usingAutoMapper;
53
+
usingFluentValidation;
54
+
usingNewtonsoft.Json;
55
+
```
56
+
57
+
- Separate using directive groups
58
+
59
+
When selected, the **Remove and Sort Usings** command in the right-click menu separates `using` directives by inserting an empty line between groups of directives that have the same root namespace.
60
+
61
+
Before sorting:
62
+
63
+
```csharp
64
+
usingAutoMapper;
65
+
usingFluentValidation;
66
+
usingSystem.Collections.Generic;
67
+
usingSystem.Linq;
68
+
usingNewtonsoft.Json;
69
+
usingSystem;
70
+
```
71
+
72
+
After sorting:
73
+
74
+
```csharp
75
+
usingAutoMapper;
76
+
77
+
usingFluentValidation;
78
+
79
+
usingNewtonsoft.Json;
80
+
81
+
usingSystem;
82
+
usingSystem.Collections.Generic;
83
+
usingSystem.Linq;
84
+
```
85
+
86
+
- Add usings for types in reference assemblies and NuGet packages
87
+
88
+
When selected, a [Quick Action](../quick-actions.md) is available to install a NuGet package and add a `using` directive for unreferenced types.
89
+
90
+

91
+
29
92
## Highlighting
30
93
31
94
- Highlight references to symbol under cursor
@@ -50,4 +113,4 @@ Use the **Advanced** options page to modify the settings for editor formatting,
Copy file name to clipboardExpand all lines: docs/profiling/profiling-feature-tour.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ While you are debugging, you can use the **Diagnostic Tools** window to analyze
28
28
29
29
The **Diagnostic Tools** window is often the preferred way to profile apps, but for Release builds you can also do a post-mortem analysis of your app instead. If you want more information on different approaches, see [Run profiling tools with or without the debugger](../profiling/running-profiling-tools-with-or-without-the-debugger.md). To see profiling tool support for different app types, see [Which tool should I use?](#which-tool-should-i-use).
30
30
31
-
> ![NOTE]
31
+
> [!NOTE]
32
32
> You can use the post-mortem tools with Windows 7 and later. Windows 8 and later is required to run profiling tools with the debugger (**Diagnostic Tools** window).
33
33
34
34
## Analyze CPU Usage
@@ -162,4 +162,4 @@ Here is a table that lists the different tools Visual Studio offers and the diff
162
162
|[JavaScript Memory](../profiling/javascript-memory.md)|no|yes for HTML, no for XAML|no|
163
163
164
164
## See also
165
-
[Debugging in Visual Studio](../debugger/debugging-in-visual-studio.md)
165
+
[Debugging in Visual Studio](../debugger/debugging-in-visual-studio.md)
0 commit comments