Monday, August 29, 2016

Git add non-whitespace changes revisited

There's a better version of what I blogged about here.

#!/bin/sh
git diff -U0 -w --no-color | git apply --cached --ignore-whitespace --unidiff-zero
Source: http://stackoverflow.com/questions/3515597/add-only-non-whitespace-changes#comment61915463_7149602

Wednesday, August 24, 2016

Visual Studio's most useful (and underused) tips

I discovered Map Mode for the scrollbar. I have seen people use that but always thought it was from a Visual Studio plugin.

Also, who knew you could compare files with Visual Studio?

Navigate to -- Ctrl+, -- is another discovery, as well as moving lines up and down with Alt-Up and Alt-Down.

Visual Studio's most useful (and underused) tips

Visual Studio's most useful (and underused) tips