Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Mixed new lines after adding using statement #4409

@mrward

Description

@mrward

Affects VS Mac 7.4.1, 7.5 (d15-7) and 7.6.0.296 (master)

To repro:

  1. Create a new C# console project.
  2. Change the Program.cs so it is missing a using statement for System, but has one other using statement.
// Comments.

using System.IO;

namespace Test
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			File.Exists (args[0]);
			Console.WriteLine ("Hello World!");
		}
	}
}
  1. Right click Console and select Quick Fix - using System;

Expected result:

using System; added with the same \n line ending as other lines.

Actual result:

using System; added with \r\n

windowsnewlineadded

VS bug #593467

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions