Is there a way to put the actual key into a song file and use capo chording on the chord sheet?

For instance, actual key of D - capo up two frets - write chords in C?