C#FixFormat extension for VSCode was updated to 0.0.61

Version 0.0.61 of C#FixFormat extension for VSCode was published on official marketplace.

Version 0.0.61 of C#FixFormat extension for VSCode was published on official marketplace.

Changelog

  • Fix #undef preprocessor directive.

Now #undef preprocessor defines should be formatted correctly.

Before:

1
2
3
4
5
6
7
8
9
10
11
12
13
#
undef DEBUG
using System;

class MyClass {
static void Main() {
#if DEBUG
Console.WriteLine("DEBUG is defined");
#else
Console.WriteLine("DEBUG is not defined");
#endif
}
}

After:

1
2
3
4
5
6
7
8
9
10
11
12
#undef DEBUG  
using System;

class MyClass {
static void Main() {
#if DEBUG
Console.WriteLine("DEBUG is defined");
#else
Console.WriteLine("DEBUG is not defined");
#endif
}
}