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/find-code-changes-and-other-history-with-codelens.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,15 +58,15 @@ You can find references in C# or Visual Basic code.
58
58
59
59
1. To view the referencing code, hover over the reference in the list.
60
60
61
-
:::image type="content" source="./media/vs-2022/codelens-peek-reference.png" border="false" alt-text="Screenshot that shows how to see the file with the reference by using CodeLens - Peek reference for Visual Studio 2019.":::
61
+
:::image type="content" source="./media/vs-2022/codelens-peek-reference.png" border="false" alt-text="Screenshot that shows how to see the file with the reference by using CodeLens - Peek reference for Visual Studio.":::
62
62
63
63
1. To open the file that contains the reference, double-click the reference.
64
64
65
65
### Create a code map
66
66
67
67
To see relationships between the code and its references, you can [create a code map](../modeling/map-dependencies-across-your-solutions.md). In the **Code Map** toolbar, expand the **Show Related** dropdown menu and select **Find All References**:
68
68
69
-
:::image type="content" source="./media/vs-2022/codelens-references-map.png" border="false" alt-text="Screenshot that shows how to create a map of all references to specific code by using CodeLens in Visual Studio.":::
69
+
:::image type="content" source="./media/vs-2022/codelens-references-map.png" border="false" alt-text="Screenshot that shows how to create a map of all references to specific code by using CodeLens in Visual Studio." lightbox="./media/vs-2022/codelens-references-map.png":::
70
70
71
71
## Find changes in your code
72
72
@@ -188,11 +188,11 @@ You can discover unit tests that exist for your C# or Visual Basic code without
188
188
189
189
1. Review the tests for the code use the **Alt** + **3** keyboard shortcut.
190
190
191
-
1. If you see the **Warning** icon :::image type="icon" source=".../media/codelens-test-warning-icon.png":::, the tests haven't run yet, so run them.
191
+
1. If you see the **Warning** icon :::image type="icon" source="./media/codelens-test-warning-icon.png":::, the tests haven't run yet, so run them.
192
192
193
193
1. To review a test's definition, double-click the test item in the CodeLens indicator window and open the code file in the editor.
194
194
195
-
1. To review the test's results, choose the test status **Failed** or **Passed** indicator (:::image type="icon" source=".../media/codelens-test-failed-icon.png"::: or :::image type="icon" source=".../media/codelens-test-passed-icon.png":::) or use the **Alt**+**1** keyboard shortcut.
195
+
1. To review the test's results, choose the test status **Failed** or **Passed** indicator (:::image type="icon" source="./media/codelens-test-failed-icon.png"::: or :::image type="icon" source="./media/codelens-test-passed-icon.png":::) or use the **Alt**+**1** keyboard shortcut.
196
196
197
197
1. To see how many contributors changed this test, who changed this test, or how many changes were made to this test, [find your code's history](#find-changes-in-your-code) and linked items.
198
198
@@ -239,7 +239,7 @@ To use the keyboard:
239
239
240
240
### Q: Can I move the CodeLens heads-up display?
241
241
242
-
**A:** Yes, choose the **Dock** icon :::image type="icon" source=".../media/codelens-dock-window.png"::: to dock CodeLens as a window.
242
+
**A:** Yes, choose the **Dock** icon :::image type="icon" source="./media/codelens-dock-window.png"::: to dock CodeLens as a window.
243
243
244
244
### Q: How do I refresh the indicators?
245
245
@@ -421,14 +421,14 @@ The icon in the **Branch** column indicates how the branch is related to the bra
421
421
422
422
| Icon | The change came from |
423
423
| --- | --- |
424
-
| :::image type="icon" source=".../media/codelens-branch-current-icon.png"::: | The current branch |
425
-
| :::image type="icon" source=".../media/codelens-branch-parent-icon.png"::: | The parent branch |
426
-
| :::image type="icon" source=".../media/codelens-branch-child-icon.png"::: | A child branch |
427
-
| :::image type="icon" source=".../media/codelens-branch-peer-icon.png"::: | A peer branch |
428
-
| :::image type="icon" source=".../media/codelens-branch-further-away-icon.png"::: | A branch further away than a parent, child, or peer |
429
-
| :::image type="icon" source=".../media/codelens-branch-merge-from-parent-icon.png"::: | A merge from the parent branch to a child branch |
430
-
| :::image type="icon" source=".../media/codelens-branch-merge-from-child-icon.png"::: | A merge from a child branch to the parent branch |
431
-
| :::image type="icon" source=".../media/codelens-branch-merge-from-unrelated-icon.png"::: | A merge from an unrelated branch (baseless merge) |
424
+
| :::image type="icon" source="./media/codelens-branch-current-icon.png"::: | The current branch |
425
+
| :::image type="icon" source="./media/codelens-branch-parent-icon.png"::: | The parent branch |
426
+
| :::image type="icon" source="./media/codelens-branch-child-icon.png"::: | A child branch |
427
+
| :::image type="icon" source="./media/codelens-branch-peer-icon.png"::: | A peer branch |
428
+
| :::image type="icon" source="./media/codelens-branch-further-away-icon.png"::: | A branch further away than a parent, child, or peer |
429
+
| :::image type="icon" source="./media/codelens-branch-merge-from-parent-icon.png"::: | A merge from the parent branch to a child branch |
430
+
| :::image type="icon" source="./media/codelens-branch-merge-from-child-icon.png"::: | A merge from a child branch to the parent branch |
431
+
| :::image type="icon" source="./media/codelens-branch-merge-from-unrelated-icon.png"::: | A merge from an unrelated branch (baseless merge) |
432
432
433
433
## Linked work items in Visual Studio 2019
434
434
@@ -470,15 +470,15 @@ You can discover unit tests that exist for your C# or Visual Basic code without
470
470
471
471
:::image type="content" source="./media/codelens-choose-test-indicator.png" alt-text="Screenshot that shows how to choose test status in the code editor with CodeLens in Visual Studio 2019.":::
472
472
473
-
1. If you see the **Warning** icon :::image type="icon" source=".../media/codelens-test-warning-icon.png":::, the tests haven't run yet, so run them.
473
+
1. If you see the **Warning** icon :::image type="icon" source="./media/codelens-test-warning-icon.png":::, the tests haven't run yet, so run them.
474
474
475
475
:::image type="content" source="./media/codelens-tests-not-yet-run.png" alt-text="Screenshot that shows how to view unit tests not yet run with CodeLens in Visual Studio 2019.":::
476
476
477
477
1. To review a test's definition, double-click the test item in the CodeLens indicator window and open the code file in the editor:
478
478
479
-
:::image type="content" source="./media/codelens-unit-test-definition.png" alt-text="Screenshot that shows how to go to a unit test definition with CodeLens in Visual Studio 2019.":::
479
+
:::image type="content" source="./media/codelens-unit-test-definition.png" alt-text="Screenshot that shows how to go to a unit test definition with CodeLens in Visual Studio 2019.":::
480
480
481
-
1. To review the test's results, choose the test status **Failed** or **Passed** indicator (:::image type="icon" source=".../media/codelens-test-failed-icon.png"::: or :::image type="icon" source=".../media/codelens-test-passed-icon.png":::) or use the **Alt** + **1** keyboard shortcut:
481
+
1. To review the test's results, choose the test status **Failed** or **Passed** indicator (:::image type="icon" source="./media/codelens-test-failed-icon.png"::: or :::image type="icon" source="./media/codelens-test-passed-icon.png":::) or use the **Alt** + **1** keyboard shortcut:
482
482
483
483
:::image type="content" source="./media/codelens-unit-test-result.png" alt-text="Screenshot that shows how to view the unit test result with CodeLens in Visual Studio 2019.":::
484
484
@@ -533,7 +533,7 @@ To use the keyboard:
533
533
534
534
### Q: Can I move the CodeLens heads-up display?
535
535
536
-
**A:** Yes, choose the **Dock** icon :::image type="icon" source=".../media/codelens-dock-window.png"::: to dock CodeLens as a window.
536
+
**A:** Yes, choose the **Dock** icon :::image type="icon" source="./media/codelens-dock-window.png"::: to dock CodeLens as a window.
537
537
538
538
:::image type="content" source="./media/codelens-select-dock-window.png" alt-text="Screenshot of Dock button in CodeLens indicator window in Visual Studio 2019.":::
0 commit comments