Skip to content

Commit 108b00b

Browse files
committed
removing code formatting from instructions
1 parent 498cc97 commit 108b00b

File tree

3 files changed

+74
-74
lines changed

3 files changed

+74
-74
lines changed

Instructions/Labs/LAB_AK_02_analyze_document_code.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Use the following steps to complete this section of the exercise:
112112
@workspace describe this project
113113
```
114114
115-
Use Chat participants, such as the `@workspace`, to scope your prompt to a specific domain. Chat participants are like domain experts who have a specialty that they can help you with. Use @workspace when you want GitHub Copilot to consider the structure of your project, how different parts of your code interact, or design patterns in your project.
115+
Use Chat participants, such as the **@workspace**, to scope your prompt to a specific domain. Chat participants are like domain experts who have a specialty that they can help you with. Use @workspace when you want GitHub Copilot to consider the structure of your project, how different parts of your code interact, or design patterns in your project.
116116
117117
To see a list of all available chat participants, type **@** in the chat prompt box.
118118
@@ -338,15 +338,15 @@ Use the following steps to complete this section of the exercise:
338338
339339
1. Verify that the message "Book was successfully returned." is displayed.
340340
341-
The message "Book was successfully returned." should be followed by the book details. Returned books are marked with `Returned: True`.
341+
The message "Book was successfully returned." should be followed by the book details. Returned books are marked with **Returned: True**.
342342
343343
1. To begin a new search, type **s** and then press Enter.
344344
345345
1. When prompted for a patron name, type **One** and then press Enter.
346346
347347
1. At the "Input Options" prompt, type **2** and then press Enter.
348348
349-
1. Verify that first book loan is marked `Returned: True`.
349+
1. Verify that first book loan is marked **Returned: True**.
350350
351351
1. At the "Input Options" prompt, type **q** and then press Enter.
352352
@@ -365,7 +365,7 @@ You need a README file that includes the following sections:
365365
- **Usage**: Instructions on how to use the project, often including code examples.
366366
- **License**: The license that the project is under.
367367
368-
In this section of the exercise, you'll use GitHub Copilot to create project documentation and add it to a `README.md` file.
368+
In this section of the exercise, you'll use GitHub Copilot to create project documentation and add it to a **README.md** file.
369369
370370
Use the following steps to complete this section of the exercise:
371371

Instructions/Labs/LAB_AK_03_develop_code_features.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -168,26 +168,26 @@ In this section of the exercise, you use GitHub Copilot to develop a new feature
168168

169169
To implement the book availability feature, you'll need to complete the following updates:
170170

171-
- Add a new `SearchBooks` action to the `CommonActions` enum in CommonActions.cs.
171+
- Add a new **SearchBooks** action to the **CommonActions** enum in CommonActions.cs.
172172

173-
- Update the `WriteInputOptions` method in ConsoleApp.cs.
173+
- Update the **WriteInputOptions** method in ConsoleApp.cs.
174174

175-
- Add support for the new `CommonActions.SearchBooks` option.
175+
- Add support for the new **CommonActions.SearchBooks** option.
176176
- Display the option to check if a book is available for loan.
177177

178-
- Update the `ReadInputOptions` method in ConsoleApp.cs.
178+
- Update the **ReadInputOptions** method in ConsoleApp.cs.
179179

180-
- Add support for the new `CommonActions.SearchBooks` option.
180+
- Add support for the new **CommonActions.SearchBooks** option.
181181

182-
- Update the `PatronDetails` method in ConsoleApp.cs.
182+
- Update the **PatronDetails** method in ConsoleApp.cs.
183183

184-
- Add `CommonActions.SearchBooks` to `options` before calling `ReadInputOptions`.
185-
- Add an `else if` to handle the `SearchBooks` action.
186-
- The `else if` block should call a new method named `SearchBooks`.
184+
- Add **CommonActions.SearchBooks** to **options** before calling **ReadInputOptions**.
185+
- Add an **else if** to handle the **SearchBooks** action.
186+
- The **else if** block should call a new method named **SearchBooks**.
187187

188-
- Create a new `SearchBooks` method in ConsoleApp.cs.
188+
- Create a new **SearchBooks** method in ConsoleApp.cs.
189189

190-
- The `SearchBooks` method should read a user provided book title.
190+
- The **SearchBooks** method should read a user provided book title.
191191
- Check if a book is available for loan, and display a message stating either:
192192

193193
- "`book.title` is available for loan", or
@@ -208,17 +208,17 @@ Use the following steps to complete this section of the exercise:
208208

209209
1. Expand the **Library.Console** project.
210210

211-
1. Open the CommonActions.cs file, and then select the `CommonActions` enum.
211+
1. Open the CommonActions.cs file, and then select the **CommonActions** enum.
212212

213-
You need to add a new `SearchBooks` action to `CommonActions`.
213+
You need to add a new **SearchBooks** action to **CommonActions**.
214214

215215
1. Open the inline chat and then enter the following prompt:
216216

217217
```plaintext
218218
Update selection to include a new `SearchBooks` action.
219219
```
220220
221-
GitHub Copilot should suggest a code update that adds the new `SearchBooks` action to the `CommonActions` enum.
221+
GitHub Copilot should suggest a code update that adds the new **SearchBooks** action to the **CommonActions** enum.
222222
223223
1. Review the suggested update and then select **Accept**.
224224
@@ -242,17 +242,17 @@ Use the following steps to complete this section of the exercise:
242242
243243
1. Open the ConsoleApp.cs file.
244244
245-
1. Find and then select the `WriteInputOptions` method.
245+
1. Find and then select the **WriteInputOptions** method.
246246
247-
You need to add support for the new `CommonActions.SearchBooks` option. If the `SearchBooks` option is flagged, display the option to check if a book is available for loan.
247+
You need to add support for the new **CommonActions.SearchBooks** option. If the **SearchBooks** option is flagged, display the option to check if a book is available for loan.
248248
249249
1. Open the inline chat and then enter the following prompt:
250250
251251
```plaintext
252252
Update selection to include an option for the `CommonActions.SearchBooks` action. Use the letter "b" and the message "to check for book availability".
253253
```
254254
255-
GitHub Copilot should suggest a code update that adds a new `if` block for the `SearchBooks` action.
255+
GitHub Copilot should suggest a code update that adds a new **if** block for the **SearchBooks** action.
256256
257257
1. Review the suggested update and then select **Accept**.
258258
@@ -295,17 +295,17 @@ Use the following steps to complete this section of the exercise:
295295
296296
```
297297
298-
1. Scroll up slightly to find and then select the `ReadInputOptions` method.
298+
1. Scroll up slightly to find and then select the **ReadInputOptions** method.
299299
300-
Once again, you need to add support for the new `CommonActions.SearchBooks` option. Include a case that handles the user selecting the `SearchBooks` action.
300+
Once again, you need to add support for the new **CommonActions.SearchBooks** option. Include a case that handles the user selecting the **SearchBooks** action.
301301
302302
1. Open the inline chat and then enter the following prompt:
303303
304304
```plaintext
305305
Update selection to include an option for the `CommonActions.SearchBooks` action.
306306
```
307307
308-
GitHub Copilot should suggest an update that adds a new `case` that handles the user selecting the `SearchBooks` action.
308+
GitHub Copilot should suggest an update that adds a new **case** that handles the user selecting the **SearchBooks** action.
309309
310310
1. Review the suggested update and then select **Accept**.
311311
@@ -345,12 +345,12 @@ Use the following steps to complete this section of the exercise:
345345
346346
```
347347
348-
1. Scroll down to find and then select the `PatronDetails` method.
348+
1. Scroll down to find and then select the **PatronDetails** method.
349349
350350
There are two things that you need to accomplish:
351351
352-
- You need to add `CommonActions.SearchBooks` to `options` before calling `ReadInputOptions`.
353-
- You also need to add an `else if` to handle the `SearchBooks` action. The `else if` block should call a new method named `SearchBooks`.
352+
- You need to add **CommonActions.SearchBooks** to **options** before calling **ReadInputOptions**.
353+
- You also need to add an **else if** to handle the **SearchBooks** action. The **else if** block should call a new method named **SearchBooks**.
354354
355355
You can address both requirements with the same prompt.
356356
@@ -360,7 +360,7 @@ Use the following steps to complete this section of the exercise:
360360
Update selection to add `CommonActions.SearchBooks` to `options` before calling `ReadInputOptions`. Add an `else if` block to handle the `SearchBooks` action. The `else if` block should call a new method named `SearchBooks`.
361361
```
362362
363-
GitHub Copilot should suggest a code update that adds `CommonActions.SearchBooks` to `options` before calling `ReadInputOptions`.
363+
GitHub Copilot should suggest a code update that adds **CommonActions.SearchBooks** to **options** before calling **ReadInputOptions**.
364364
365365
1. Review the suggested update and then select **Accept**.
366366
@@ -421,42 +421,42 @@ Use the following steps to complete this section of the exercise:
421421
422422
```
423423
424-
> **NOTE**: The code suggested by Inline chat may include stub code for the `SearchBooks` method. You can accept that code. You'll implement the `SearchBooks` method in the next section.
424+
> **NOTE**: The code suggested by Inline chat may include stub code for the **SearchBooks** method. You can accept that code. You'll implement the **SearchBooks** method in the next section.
425425
426426
### Implement a SearchBooks method using the Chat view
427427
428-
There's one step remaining to implement the "book availability" updates, create the `SearchBooks` method. The `SearchBooks` method will read a user provided book title, check if a book is available for loan, and display a message indicating the book's availability status. You'll use the Chat view to evaluate the requirements and implement the `SearchBooks` method.
428+
There's one step remaining to implement the "book availability" updates, create the **SearchBooks** method. The **SearchBooks** method will read a user provided book title, check if a book is available for loan, and display a message indicating the book's availability status. You'll use the Chat view to evaluate the requirements and implement the **SearchBooks** method.
429429
430430
GitHub Copilot's Chat view provides a conversational and interactive environment that isn't available when using inline chat. You can use the Chat view to ask questions, request code suggestions, and get explanations for the code generated by GitHub Copilot. The Chat view supports the following three modes:
431431
432432
- Ask mode: Ask mode is used to gain a better understanding of your codebase, brainstorm ideas, and help with coding tasks. The code suggestions generated in Ask mode can be implemented directly into your codebase or copied to the clipboard.
433433
- Edit mode: Edit mode is used to make changes to your code, such as refactoring or adding new features. Edit mode can make edits across multiple files in your project.
434434
- Agent mode: Agent mode is used to define a high-level task and to start an agentic code editing session to accomplish that task. In agent mode, Copilot autonomously plans the work needed and determines the relevant files and context. The agent can make changes to your code, run tests, and even deploy your application.
435435
436-
You'll be u the Ask and Edit modes to implement the `SearchBooks` method.
436+
You'll be u the Ask and Edit modes to implement the **SearchBooks** method.
437437
438438
Use the following steps to complete this section of the exercise:
439439
440-
1. Take a minute to consider the process requirements for the `SearchBooks` method.
440+
1. Take a minute to consider the process requirements for the **SearchBooks** method.
441441
442442
What's the process that the method needs to complete? What's the return type for this method? Does it require parameters?
443443
444-
The `SearchBooks` method should implement the following process:
444+
The **SearchBooks** method should implement the following process:
445445
446446
1. Prompt the user for a book title.
447447
1. Read the user provided book title.
448448
1. Check if a book is available for loan.
449449
1. Display a message stating one of the following options:
450450
451451
- "`book.title` is available for loan"
452-
- "`book.title` is on loan to another patron. The return due date is `loan.DueDate`.
452+
- "`book.title` is on loan to another patron. The return due date is `loan.DueDate`."
453453
454454
To build the message options, your code will need to access the following JSON files:
455455
456-
- `Books.json` is needed to find the matching `Title` and `BookId`.
457-
- `Loans.json` is needed to find the `ReturnDate` and `DueDate` for the matching `BookItemId`. The `BookItemId` is the same as the `BookId` in `Books.json`.
456+
- **Books.json** is needed to find the matching **Title** and **BookId**.
457+
- **Loans.json** is needed to find the **ReturnDate** and **DueDate** for the matching **BookItemId**. The **BookItemId** is the same as the **BookId** in **Books.json**.
458458
459-
1. Ensure that you have the following `SearchBooks` method created in the ConsoleApp.cs file:
459+
1. Ensure that you have the following **SearchBooks** method created in the ConsoleApp.cs file:
460460
461461
```csharp
462462
@@ -507,7 +507,7 @@ Use the following steps to complete this section of the exercise:
507507
508508
1. In the code editor, to accept the suggested code, select **Keep**.
509509
510-
1. Select the `SearchBooks` method.
510+
1. Select the **SearchBooks** method.
511511
512512
1. Use drag-and-drop operations to add the following files to the Chat context:
513513
@@ -606,7 +606,7 @@ Use the following steps to complete this section of the exercise:
606606
- JsonData.cs
607607
- JsonLoanRepository.cs
608608
609-
1. Select the `SearchBooks` method.
609+
1. Select the **SearchBooks** method.
610610
611611
1. Enter the following prompt:
612612
@@ -622,7 +622,7 @@ Use the following steps to complete this section of the exercise:
622622
623623
**ConsoleApp.cs**
624624
625-
Code updates that add the `JsonData` dependency to the `ConsoleApp` constructor can be found near the top of the ConsoleApp class.
625+
Code updates that add the **JsonData** dependency to the **ConsoleApp** constructor can be found near the top of the ConsoleApp class.
626626
627627
```csharp
628628
@@ -639,7 +639,7 @@ Use the following steps to complete this section of the exercise:
639639
640640
```
641641
642-
Code updates that check if a book is available for loan can be found in the `SearchBooks` method.
642+
Code updates that check if a book is available for loan can be found in the **SearchBooks** method.
643643
644644
```csharp
645645
@@ -732,7 +732,7 @@ In this section of the exercise, you complete the following tasks:
732732
733733
### Test the "book availability" feature
734734
735-
Manual testing can be used to verify that the new feature works as expected. Using a data source that can be verified is important. In this case, you use the `Books.json` and `Loans.json` files to verify that the new feature reports the availability status of a book correctly.
735+
Manual testing can be used to verify that the new feature works as expected. Using a data source that can be verified is important. In this case, you use the **Books.json** and **Loans.json** files to verify that the new feature reports the availability status of a book correctly.
736736
737737
Use the following steps to complete this section of the exercise:
738738
@@ -770,24 +770,24 @@ Use the following steps to complete this section of the exercise:
770770
771771
1. Stop the debug session.
772772
773-
1. Open the `Loans.json` file.
773+
1. Open the **Loans.json** file.
774774
775-
The `Loans.json` file is used to track the loan status of each book. You can use the `Loans.json` file to verify that the availability status of Book One and Book Two is correct.
775+
The Loans.json file is used to track the loan status of each book. You can use the Loans.json file to verify that the availability status of Book One and Book Two is correct.
776776
777-
The updated `Loans.json` file should be located in either the `Library.Console\bin\Debug\net8.0\Json` folder or `Library.Console\Json` folder.
777+
The updated Loans.json file should be located in either the **Library.Console\bin\Debug\net8.0\Json** folder or **Library.Console\Json** folder.
778778
779-
- If you're using the Visual Studio Code debugger to run the app, the updated `Loans.json` file should be located in the `Library.Console\bin\Debug\net8.0\Json` folder.
779+
- If you're using the Visual Studio Code debugger to run the app, the updated Loans.json file should be located in the **Library.Console\bin\Debug\net8.0\Json** folder.
780780
781-
- If you're using a `dotnet run` command from the `AccelerateDevGHCopilot\src\Library.Console>` folder to run the app, the updated `Loans.json` file should be located in the `Library.Console\Json` folder.
781+
- If you're using a **dotnet run** command from the **AccelerateDevGHCopilot\src\Library.Console** folder to run the app, the updated Loans.json file should be located in the **Library.Console\Json** folder.
782782
783-
1. Verify that loan ID 37 and loan ID 46 are both for Book One (`"BookItemId": 1`).
783+
1. Verify that loan ID 37 and loan ID 46 are both for Book One (**"BookItemId": 1**).
784784
785-
- Loan ID 37 should have a `ReturnDate` value of `2024-01-17`, indicating that the book was returned on that date.
786-
- Loan ID 46 should have a `ReturnDate` value `null`, indicating that the book is currently on loan (loaned on `2024-07-09` but not returned).
785+
- Loan ID 37 should have a **ReturnDate** value of **2024-01-17**, indicating that the book was returned on that date.
786+
- Loan ID 46 should have a **ReturnDate** value **null**, indicating that the book is currently on loan (loaned on **2024-07-09** but not returned).
787787
788-
The `ReturnDate` value is used to determine whether the book is currently on loan. If the `ReturnDate` value is `null`, the book is currently on loan.
788+
The **ReturnDate** value is used to determine whether the book is currently on loan. If the **ReturnDate** value is **null**, the book is currently on loan.
789789
790-
1. Verify that loan ID 50 is for Book Three (`"BookItemId": 3`) and that the `ReturnDate` value is set to `2023-12-29`.
790+
1. Verify that loan ID 50 is for Book Three (**"BookItemId": 3**) and that the **ReturnDate** value is set to **2023-12-29**.
791791
792792
### Sync your changes with the remote repository
793793
@@ -836,7 +836,7 @@ Use the following steps to complete this section of the exercise:
836836
837837
1. If all checks pass and there are no conflicts with the base branch, select **Merge pull request**, and then select **Confirm merge**.
838838
839-
Notice that you can delete the `book-availability` branch after merging the changes. To delete the branch, select **Delete branch**.
839+
Notice that you can delete the **book-availability** branch after merging the changes. To delete the branch, select **Delete branch**.
840840
841841
1. Switch back to the Visual Studio Code window.
842842

0 commit comments

Comments
 (0)