Skip to content

Commit c6c2a58

Browse files
committed
Add fragment links back to Sample Files subsection
1 parent 198c372 commit c6c2a58

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/setup_vscode_macos.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ $ touch stats.cpp
241241
## Compile and Run
242242
VS Code does not use an internal build system for C++. That means you'll be compiling your code from the terminal. In EECS 280 projects, you compile with the `make` utility and a `Makefile` provided with each project.
243243

244-
Identify your desired compilation target, for example, `main.exe`.
244+
Identify your desired compilation target, for example, `main.exe`. In this example, we'll compile `main.cpp` using `Makefile` from the [Sample Files](#sample-files) section.
245245

246246
Compile with:
247247

@@ -275,7 +275,7 @@ cats.csv p1_library.cpp stats.cpp stats_public_tests.cpp two_sample.c
275275
You can also run your compiled executable through the VS Code visual debugger to diagnose runtime errors, inspect the state of your program at a breakpoint, or step line-by-line through your code.
276276

277277
<div class="primer-spec-callout info" markdown="1">
278-
The examples below assume a source file `main.cpp` compiled to `main.exe`. Your filenames may be different.
278+
The examples below assume a source file `main.cpp` compiled to `main.exe` ([Sample Files](#sample-files)). Your filenames may be different.
279279
</div>
280280

281281
### Create `launch.json`

docs/setup_vscode_wsl.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ $ touch stats.cpp
283283
```
284284

285285
## Compile and Run
286-
VS Code does not use an internal build system for C++. That means you'll be compiling your code from the terminal. In EECS 280 projects, you compile with the `make` utility and a `Makefile` provided with each project. You can open the Makefile in VS Code to take a look.
286+
VS Code does not use an internal build system for C++. That means you'll be compiling your code from the terminal. In EECS 280 projects, you compile with the `make` utility and a `Makefile` provided with each project.
287+
288+
Identify your desired compilation target, for example, `main.exe`. In this example, we'll compile `main.cpp` using `Makefile` from the [Sample Files](#sample-files) section.
287289

288-
Identify your desired compilation target, for example, `main.exe`.
289290

290291
Compile with:
291292

@@ -319,7 +320,7 @@ cats.csv p1_library.cpp stats.cpp stats_public_tests.cpp two_sample.c
319320
You can also run your compiled executable through the VS Code visual debugger to diagnose runtime errors, inspect the state of your program at a breakpoint, or step line-by-line through your code.
320321

321322
<div class="primer-spec-callout info" markdown="1">
322-
The examples below assume a source file `main.cpp` compiled to `main.exe`. Your filenames may be different.
323+
The examples below assume a source file `main.cpp` compiled to `main.exe` ([Sample Files](#sample-files)). Your filenames may be different.
323324
</div>
324325

325326

0 commit comments

Comments
 (0)