Took advantage of a nice feature in ReSharper 8 today.
I wanted to grab the current DateTime and display the time only, in 12-hour format with seconds and AM/PM. But I don’t do it often and couldn’t remember the exact format off the top of my head. So I typed
DateTime.Now.ToString(" and paused for a moment to think…
And lo’ and behold, ReSharper came to the rescue. I totally forgot about a new feature called “formatting specifier completion”. You get an intellisense-format drop-down, with applicable format strings (in this case, formats that could be applied to DateTime values) and a sample of what each looks like when applied.
If you’re new to ReSharper 8, or you haven’t heard of this feature, you can read more about it here.