Skip to content

Instantly share code, notes, and snippets.

View daiplusplus's full-sized avatar
💀

Dai daiplusplus

💀
View GitHub Profile
@daiplusplus
daiplusplus / Program.cs
Last active July 11, 2018 02:21
RedGate .NET Reflector - Toolbar and panel border fix
// I use Redgate .NET Reflector ( https://www.red-gate.com/products/dotnet-development/reflector/index ) regularly and there's just a couple of things about it that irritate me:
// 1. The toolbars at the top are on two lines which wastes space. This program automatically moves the toolbar next to the menubar to save space.
// 2. The left-hand-side tree-view has a 1px black border set for some reason, this looks ugly. This program removes the border.
// Instructions:
// 1. Save this file somewhere.
// 2. Create a new C# Class-library (DLL) project in Visual Studio. Use AnyCPU.
// 3. Add a reference to Reflector.exe
// 4. Build.
// 5. Open reflector and add the output assembly to its add-ins list.
@daiplusplus
daiplusplus / UpdateVSTemplates.ps1
Created June 29, 2018 00:10
PowerShell script to add using System.Globalization; and using System.Text to every C# file in every ItemTemplate and ProjectTemplate
Set-StrictMode -Version 2.0
$ErrorActionPreference = "Stop"
###########################################
## Summary
# This script changes the namespace imports in your C# ItemTemplates and ProjectTemplates and improves your default AssemblyInfo.cs files.
# It is designed for Visual Studio 2017, but should work with all Visual Studio versions going back as far as Visual Studio 2002, just set $vsCommon7IDE correctly.
###########################################