Skip to content

Commit 5a27a48

Browse files
TylerMSFTTylerMSFT
authored andcommitted
typo
1 parent b6a8bd0 commit 5a27a48

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

docs/ide/visualize-macro-expansion.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,15 @@ You can inspect a macro's expanded value, even when several preprocessor steps a
5252
:::image-end:::
5353
5454
1. Choose **Copy**.
55-
1. Create a comment following the `POWER` line and choose paste (`Ctrl+V`). THe expansion of the macro, as a comment near your macro, looks like: ```// (((10.0 * 20.0)* (5.0 * 2.0)) / 2.0)```.
55+
1. Create a comment following the `POWER` line and choose paste (`Ctrl+V`). The expansion of the macro, as a comment near your macro, looks like: ```// (((10.0 * 20.0)* (5.0 * 2.0)) / 2.0)```.
5656
57-
## Expand a macro
57+
## Expand a macro inline
5858
5959
Use the following steps to expand a macro inline, which replaces the macro with its expansion:
6060
6161
1. Place the cursor on the `POWER` macro in the previous example.
62-
1. As you hover over the macro, options appear to **Copy**, **Expand Inline**, **Visualize Expansion**, and **Search Online**:
63-
64-
:::image type="complex" source="media/vs2022-hover-macro.png" alt-text="The macro window, showing the POWER macro expansion.":::
65-
The macro window is open on POWER to show that it expands to (((10.0 * 20.0) * (5.0 * 2.0)) / 2.0). Options to copy, expand inline, visual expansion, and search online appear at the bottom of the window.
66-
:::image-end:::
67-
68-
1. Choose **Expand Inline**. The `POWER()` macro is replaced with its expanded value: ```std::cout << "Power: " << (((10.0 * 20.0) * (5.0 * 2.0)) / 2.0) << std::endl;```.
62+
1. As you hover over the macro, options appear to **Copy**, **Expand Inline**, **Visualize Expansion**, and **Search Online**
63+
1. Choose **Expand Inline**. The `POWER()` macro is replaced with its expanded value: ```std::cout << "Power: " << (((10.0 * 20.0) * (5.0 * 2.0)) / 2.0) << std::endl;```
6964
7065
## Visualize macro expansion
7166

0 commit comments

Comments
 (0)