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/generate-deconstructor.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,21 @@ This code generation applies to:
20
20
21
21
**When:** You want to properly deconstruct your type automatically.
22
22
23
-
**Why:** You can manually type a deconstructor, however this feature will generate the stub for you with the correct out parameters.
23
+
**Why:** You can manually type a deconstructor, but this feature generates the stub for you with the correct out parameters.
24
24
25
-
## Generate deconstructor
25
+
## Generate a deconstructor
26
26
27
-
1. Declare a new type with the desired out parameters specified. This declaration will cause an error when no deconstruct instance can be found matching your declaration.
27
+
1. Declare a new type with the desired out parameters specified. This declaration will cause an error when no deconstruct instance matching your declaration can be found.
Copy file name to clipboardExpand all lines: docs/ide/reference/generate-usings.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,20 +16,20 @@ This code generation applies to:
16
16
17
17
- C#
18
18
19
-
**What:** Lets you immediately add the necessary imports or [using statements](/dotnet/csharp/language-reference/keywords/using-statement)of copy-and-pasted code.
19
+
**What:** Lets you immediately add the necessary imports or [using statements](/dotnet/csharp/language-reference/keywords/using-statement)for copy-and-pasted code.
20
20
21
-
**When:** It's common practice to copy and paste code from different places in your project or other code sources. This quick action analyzes missing imports for copy-and-pasted code and then prompts you to add them.
21
+
**When:** It's common practice to copy code from different places in your project or other sources and paste it in to new code. This Quick Action finds missing imports statements for copy-and-pasted code and then prompts you to add them.
22
22
23
-
**Why:**By automatically adding necessary imports, the user doesn't need to manually copy the needed `using` statements.
23
+
**Why:**Because the Quick Action automatically adds necessary imports, you don't need to manually copy the `using` statements that your code needs.
24
24
25
25
## Generate usings refactoring
26
26
27
-
1. Copy and paste code from a different file without including the necessary `using` statements. The error is now accompanied by a code fix that adds the missing `using` statements.
27
+
1. Copy code from a file and paste it into a new one without including the necessary `using` statements. The resulting error is accompanied by a code fix that adds the missing `using` statements.
28
28
29
29
> [!NOTE]
30
-
> This suggestion needs to be turned on in **Tools > Options > Text Editor > C# > Advanced > Using Directives**.
30
+
> You need to enable this suggestion in **Tools > Options > Text Editor > C# > Advanced > Using Directives**.
31
31
32
-
2.Press **Ctrl**+**.** to open the **Quick Actions and Refactorings** menu.
32
+
2.Select Ctrl+. to open the **Quick Actions and Refactorings** menu.
0 commit comments