Skip to content

Commit 8eaf76b

Browse files
authored
Clarifications
1 parent f7d6048 commit 8eaf76b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

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

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

3030
## How-to
3131

32-
1. 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:
33+
34+
```csharp
35+
class Person
36+
```
37+
38+
```vb
39+
Class Person
40+
```
3341

3442
1. Next, do one of the following:
3543

36-
- **Keyboard**
37-
- 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.
38-
- **Mouse**
39-
- 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.
4048

41-
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.
4250

4351
- C#:
4452

0 commit comments

Comments
 (0)