🟣 C# / .NET 6+
Align Taskbar Icons Left (C#)
Switches the Windows 11 taskbar back to left-aligned icons. Applies the tweak via Microsoft.Win32.Registry.
SetTaskbarAlignLeft.cs
// SetTaskbarAlignLeft.cs
//
// Align Taskbar Icons Left.
// Switches the Windows 11 taskbar back to left-aligned icons.
//
// Usage: dotnet new console -o SetTaskbarAlignLeft, replace Program.cs with this
// file, then dotnet run.
using System;
using Microsoft.Win32;
using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced");
key.SetValue("TaskbarAl", 0, RegistryValueKind.DWord);
Console.WriteLine("Align Taskbar Icons Left applied.");