mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
Disabling Source Link for F12
This commit is contained in:
parent
3db07df8ff
commit
10aeb4bf6f
|
|
@ -3,6 +3,7 @@
|
|||
If you find any mistakes, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com.
|
||||
|
||||
- [Page n - Understanding the journey to one .NET and Understanding .NET support](#page-n---understanding-the-journey-to-one-net-and-understanding-net-support)
|
||||
- [Page n - Getting definitions of types and their members](#page-n---getting-definitions-of-types-and-their-members)
|
||||
- [Page n - Formatting using numbered positional arguments](#page-n---formatting-using-numbered-positional-arguments)
|
||||
- [Page n - Getting text input from the user](#page-n---getting-text-input-from-the-user)
|
||||
- [Page n - Running unit tests using Visual Studio Code](#page-n---running-unit-tests-using-visual-studio-code)
|
||||
|
|
@ -19,6 +20,31 @@ On October 28, 2022, the .NET team changed the name *again*, to [**Standard Term
|
|||
|
||||
*Sigh.* Such are the perils of trying to be up-to-date on release day.
|
||||
|
||||
# Page n - Getting definitions of types and their members
|
||||
|
||||
In Step 3, I wrote, "Click inside `int` and then right-click and choose **Go To Definition**."
|
||||
|
||||
This used to show code reverse-engineered **from metadata** for the selected type (see *Figure 1.1*), including the comments that I talk about in the book, but it now shows **Source Link** code (see *Figure 1.2*) which does not have comments.
|
||||
|
||||

|
||||
|
||||
*Figure 1.1: [from metadata] code*
|
||||
|
||||

|
||||
|
||||
*Figure 1.2: [SourceLink] code*
|
||||
|
||||
To change back to the original behavior that is described in the book, please follow these steps:
|
||||
|
||||
1. Navigate to **Tools** | **Options**.
|
||||
2. In the **Options** dialog, navigate to **Text Editor** | **C#** | **Advanced**.
|
||||
3. In the **Go To Definition** section, clear the check box named **Enable navigation to Source Link and Embedded sources**, as shown in *Figure 1.3*.
|
||||
4. Click **OK**.
|
||||
|
||||

|
||||
|
||||
*Figure 1.3: Disabling Source Link for the Go To Definition feature*
|
||||
|
||||
# Page n - Formatting using numbered positional arguments
|
||||
|
||||
At the end of the section, I say, "The `Write`, `WriteLine`, and `Format` methods can have up to four numbered arguments, named `arg0`,
|
||||
|
|
|
|||
BIN
docs/errata/images/B18856_01_01.png
Normal file
BIN
docs/errata/images/B18856_01_01.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
docs/errata/images/B18856_01_02.png
Normal file
BIN
docs/errata/images/B18856_01_02.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
BIN
docs/errata/images/B18856_01_03.png
Normal file
BIN
docs/errata/images/B18856_01_03.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Loading…
Reference in a new issue