does anyone know of a tool or extension to Visual Studio 2010 to count non-whitespace (e.g. all characters but not spaces, new lines etc.) for current selection in a document?
Nice to have for code golfing 🙂
I have a command line tool, but an integrated tool would be very nice. Also I would prefer something to evaluate current selection.
I finally got to creating this crude macro below by first recording a temporary macro in Visual Studio and then modifying it to look like the below:
This can be bound to a keybord shortcut if desired. Otherwise, double clicking it in Macro Explorer will run it.