
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
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"}};
}
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