Skip to content

Format Code not modifying the first line selected (unless it is selected all the way to the left) #214

@jeffschwMSFT

Description

@jeffschwMSFT

format

Here is the sample code (though it is trivial):
using System;
using System.Collections.Generic;

namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
{
Dictionary<string, string> context = new Dictionary<string, string>() {
{"a", "some string"}};

                    int foo = 1;
                     bool b = false;

                        Console.WriteLine("{0} {1} {2}", context["a"], foo, b);
    }
}

}

If you select anywhere between the "n" in "int" to "e" in "Console" and then request VS Code to format the code, it will do the last 2 lines, but not the first.

C# Extension 1.0.3-rc2
Mac OS X

Metadata

Metadata

Assignees

Labels

BugEditor-FormattingfixedFixed and available in the stable version of C# Extension.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions