Skip to content

Commit bbb3eaa

Browse files
authored
Merge pull request #3093 from kendrahavens/patch-1
Highlighting no longer shows this codefix
2 parents 742e16c + 23474d9 commit bbb3eaa

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed
Binary file not shown.
Binary file not shown.

docs/ide/reference/move-type-to-matching-file.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,24 @@ This refactoring applies to:
2929

3030
## How-to
3131

32-
1. Highlight or place the text cursor inside the name of the type to move:
32+
1. Place the cursor inside the name of the type where it is defined. For example:
3333

34-
- C#:
35-
36-
![Highlighted code - C#](media/movetype-highlight-cs.png)
37-
38-
- Visual Basic:
39-
40-
![Highlighted code - Visual Basic](media/movetype-highlight-vb.png)
34+
```csharp
35+
class Person
36+
```
37+
38+
```vb
39+
Class Person
40+
```
4141

4242
1. Next, do one of the following:
4343

44-
- **Keyboard**
45-
- Press **Ctrl**+**.** to trigger the **Quick Actions and Refactorings** menu and select **Move type to *TypeName*.cs** from the Preview window popup, where *TypeName* is the name of the type you have selected.
46-
- **Mouse**
47-
- Right-click the code, select the **Quick Actions and Refactorings** menu and select **Move type to *TypeName*.cs** from the Preview window popup, where *TypeName* is the name of the type you have selected.
44+
- Press **Ctrl**+**.**
45+
- Right-click on the type name and select **Quick Actions and Refactorings**
46+
47+
1. Select **Move type to *TypeName*.cs** from the menu, where *TypeName* is the name of the type you've selected.
4848

49-
The type is moved to a new file with that name, as part of your solution.
49+
The type is moved to a new file in the project that has the same name as the type.
5050

5151
- C#:
5252

@@ -58,4 +58,4 @@ This refactoring applies to:
5858

5959
## See also
6060

61-
- [Refactoring](../refactoring-in-visual-studio.md)
61+
- [Refactoring](../refactoring-in-visual-studio.md)

0 commit comments

Comments
 (0)