I know how to figure out the chords in a major key. You write out the scale place the sharps where appropriate then use the formula Major, Minor, Minor, Major, Major, Minor, Diminished. Just to use an example i will use C.
C = C, Dm, Em, F, G, Am, B diminished
But what would the chords be if the Key was C#? Is there also a set formula?