Skip to content

Single spacing #15906

Closed
Closed

Description

@tlhintoq

Its worth noting AND THERE SHOULD BE EXAMPLES HERE - that <para> started being double spaced with VS2017 and continues to be doubled spaced in VS2019. Several issues were raised on MSDN about it and all were closed with no solution provided for creating single-spaced XML intellisense comments in our C# and F# code. All just say "not on our current road map".

It is now necessary to add <br/> breaks at the end of each line you want to have single spaced.
For example, if you wanted to include a single spaced block of code to your method.

        /// <summary>Gets the angle (0-360, 0 being North) between two points. The angle is the direction from point 1 to point 2.
        /// <code> <para>
        /// GetAngle(0, 0, 1, 0) = 0<br/>
        /// GetAngle(0, 0, -1, 0) = 180<br/>
        /// GetAngle(0, 0, -1, 0) = 180<br/>
        /// GetAngle(0, 0, 0, 1) = 90<br/>
        /// GetAngle(0, 0, 0, -1) = 270<br/>
        /// </para></code>
        /// </summary>
        /// <param name="lat1"></param>
        /// <param name="long1"></param>
        /// <param name="lat2"></param>
        /// <param name="long2"></param>
        /// <returns></returns>

edit by @BillWagner: format sample.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added
    help wanted
    good first issue
    and removed
    ⌚ Not Triaged
    on Nov 21, 2019
  2. BillWagner commented on Nov 21, 2019

    @BillWagner
    Member

    Thanks for creating this issue @tlhintoq I've added it to our backlog for us to address when we next update this article.

    I've also added the "up for grabs" and "good first issue" label for any community members that want to address this.

  3. tlhintoq commented on Nov 21, 2019

    @tlhintoq
    Author
  4. nemrism commented on Nov 26, 2019

    @nemrism
    Contributor

    @tlhintoq Are you goingto create the according PR?

  5. added
    won't fix
    on Jan 25, 2021
  6. dotnet-bot commented on Jan 25, 2021

    @dotnet-bot
    Contributor

    This issue has been closed as part of the issue backlog grooming process outlined in #22351.

    That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the @dotnet/docs team for visibility.

  7. BillWagner commented on May 19, 2021

    @BillWagner
    Member

    reopening to address as part of updating the XML section.

  8. removed
    won't fix
    on May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnet-csharp/svcfundamentals/subsvcgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions