Skip to content

Commit cba87fe

Browse files
authored
Merge pull request #4397 from v-albemi/ide-reference-generate-articles
edit pass: ide-reference-generate-articles
2 parents 5687b66 + ba51562 commit cba87fe

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

docs/ide/reference/generate-deconstructor.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ This code generation applies to:
2020

2121
**When:** You want to properly deconstruct your type automatically.
2222

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.
2424

25-
## Generate deconstructor
25+
## Generate a deconstructor
2626

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.
2828

2929
![Missing deconstructor error](media/deconstruct.png)
3030

31-
2. Next, do one of the following in the:
31+
2. Take one of the following steps:
3232

3333
- **Keyboard**
34-
- With your cursor in your declaration, press **Ctrl**+**.** to trigger the **Quick Actions and Refactorings** menu.
34+
- With the cursor in your declaration, select Ctrl+. to trigger the **Quick Actions and Refactorings** menu.
3535
- **Mouse**
3636
- Right-click and select the **Quick Actions and Refactorings** menu.
37-
- Click the ![screwdriver](media/screwdriver.png) icon that appears in the left margin if the text cursor is already on the empty line in the class.
37+
- Select the ![screwdriver](media/screwdriver.png) icon that appears in the left margin if the text cursor is already on the empty line in the class.
3838

3939
![Generate deconstructor code fix](media/deconstruct-codefix.png)
4040

@@ -47,4 +47,4 @@ This code generation applies to:
4747

4848
- [Code generation](../code-generation-in-visual-studio.md)
4949
- [Preview changes](../../ide/preview-changes.md)
50-
- [Tips for .NET Developers](../../ide/visual-studio-2017-for-dotnet-developers.md)
50+
- [Tips for .NET developers](../../ide/visual-studio-2017-for-dotnet-developers.md)

docs/ide/reference/generate-usings.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ This code generation applies to:
1616

1717
- C#
1818

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.
2020

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.
2222

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.
2424

2525
## Generate usings refactoring
2626

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.
2828

2929
> [!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**.
3131
32-
2. Press **Ctrl**+**.** to open the **Quick Actions and Refactorings** menu.
32+
2. Select Ctrl+. to open the **Quick Actions and Refactorings** menu.
3333

3434
![Generate usings](media/generate-using-codefix.png)
3535

@@ -39,6 +39,6 @@ This code generation applies to:
3939

4040
## See also
4141

42-
- [Code Generation](../code-generation-in-visual-studio.md)
42+
- [Code generation](../code-generation-in-visual-studio.md)
4343
- [Preview Changes](../../ide/preview-changes.md)
44-
- [Tips for .NET Developers](../../ide/visual-studio-2017-for-dotnet-developers.md)
44+
- [Tips for .NET developers](../../ide/visual-studio-2017-for-dotnet-developers.md)

0 commit comments

Comments
 (0)