/ intellisenseresharperresharper8stringformat

ReSharper 8 - Formatting Specifier Completion

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.

vs2013_stringFormatHelper


Grant Winney

Grant Winney

I write when I've got something to share - a personal project, a solution to a difficult problem, or just an idea. We learn by doing and sharing. We've all got something to contribute.

Read More