|
1 | 1 | # Box Sample |
2 | | -This sample is a simple C++ program that takes console input (box dimensions) and computes their sum (box volume). |
| 2 | +This sample is a simple C++ program that computes and outputs the volume of a box. |
3 | 3 |
|
4 | 4 | We use this example in our blog posts to illustrate new extension features. |
5 | 5 |
|
6 | 6 | ## Build and Debug Active File |
7 | | -Available as of March 2019, "Build and Debug Active File" automatically configures the build tasks and kicks off a build and debug session. |
| 7 | +Available as of March 2019, "Build and Debug Active File" automatically configures the build tasks and kicks off a build and debug session. There are |
| 8 | +three ways to get started with this feature. |
8 | 9 |
|
9 | | -### Context Menu |
10 | | -While editing a file in a workspace folder, you can right click in the editor field and select the "Build and Debug Active File" context menu option. |
11 | | - |
12 | | - |
| 10 | +### Command |
| 11 | +While editing a file in your workspace folder, you can open the command palette and select the `C/C++: Build and Debug Active File` command. |
| 12 | +This option will generate a tasks.json file for you, build your active source file, and then launch the debugger. |
13 | 13 |
|
14 | | -Your tasks.json and launch.json files will be created and the project will build and launch the debugger mode. |
| 14 | + |
15 | 15 |
|
16 | | -### Command |
17 | | -Another way to begin building and debugging your active file is to execute the command by pressing "F5". |
| 16 | +### Context Menu |
| 17 | +While editing a file in a workspace folder, you can right click in the editor field and select the "Build and Debug Active File" context menu option. |
| 18 | +This option will generate a tasks.json file for you, build your active source file, and then launch the debugger. |
18 | 19 |
|
19 | | -Just like with the context menu, your tasks.json and launch.json files will be created and the project will build and launch the debugger mode. |
| 20 | + |
20 | 21 |
|
| 22 | +### F5 |
| 23 | +Another way to begin building and debugging your active file is to execute the command by pressing <kbd>F5</kbd>. This method will configure |
| 24 | +both a tasks.json and launch.json file for you, build your active source file, and then launch the debugger. |
0 commit comments