front end – Convert Derivative[1][f] to f’

I believe this is a little problem that everybody asking or answering ODE related question in this site suffers.

We know derivative of a variable, say, f, can be inputted as


But once the f' is executed, or we just keystrokes Ctrl+Shift+n to convert it to StandardForm, it’ll become

enter image description here

Copy and paste it to this site, or any text editor, what we obtain is


Not too bad, but still less concise compared to f'. What’s the simplest way to convert it back to f'?

Ideally, can we modify the behavior of Convert to InputForm i.e. Ctrl+Shift+i?

f' above is just an example. I’m expecting a solution that handles Derivative[n][f] where n is an integer, of course.