I have a function called "AbleitungsForm" (Ableitung is german for Derivative) which is based on an answer I found here in SE. I coudn't find the original answer. It looks like this:
AbleitungsForm::ON = "AbleitungsForm with Options \"AuchStandard\[Rule]`1`\" and \"MitArgumenten\[Rule]`2`\" is activ."; AbleitungsForm::OFF = "AbleitungsForm has been deactivated."; abFOpts={} SyntaxInformation[AbleitungsForm]={"ArgumentsPattern"->{_,OptionsPattern[]}}; Options[AbleitungsForm]={AuchStandard->True,MitArgumenten->False}; AbleitungsForm[On,opt:OptionsPattern[]] := (Quiet[AbleitungsForm[Off]]; abFOpts={OptionValue[AuchStandard],OptionValue[MitArgumenten]}; If[OptionValue[AuchStandard] === True, If[OptionValue[MitArgumenten] === False, Derivative /: MakeBoxes[Derivative[inds__][g_][vars__Symbol], form : TraditionalForm | StandardForm | DAFX] := Module[{bb, dd, sp}, MakeBoxes[dd, _] ^= If[Length[{inds}] == 1, "\[DifferentialD]", "\[PartialD]"]; MakeBoxes[sp, _] ^= "\[ThinSpace]"; bb /: MakeBoxes[bb[x__], _] := RowBox[Map[ToBoxes[#] &, {x}]]; FractionBox[ToBoxes[bb[dd^Plus[inds], g]], ToBoxes[Apply[bb, Riffle[Map[bb[dd, #] &, Select[({vars}^{inds}), (# =!= 1 &)]], sp]]]]], Derivative /: MakeBoxes[Derivative[inds__][g_][vars__Symbol], form : TraditionalForm | StandardForm | DAFX] := Module[{bb, dd, sp, vd}, MakeBoxes[dd, _] ^= If[Length[{inds}] == 1, "\[DifferentialD]", "\[PartialD]"]; MakeBoxes[sp, _] ^= "\[ThinSpace]"; vd[f_, v__, fmt_] := DisplayForm@ToBoxes[f[v], fmt]; bb /: MakeBoxes[bb[x__], _] := RowBox[Map[ToBoxes[#] &, {x}]]; FractionBox[ToBoxes[bb[dd^Plus[inds], vd[g, vars, form]]], ToBoxes[Apply[bb, Riffle[Map[bb[dd, #] &, Select[({vars}^{inds}), (# =!= 1 &)]], sp]]]]] ], If[OptionValue[MitArgumenten] === False, Derivative /: MakeBoxes[Derivative[inds__][g_][vars__Symbol], form : TraditionalForm | DAFX] := Module[{bb, dd, sp}, MakeBoxes[dd, _] ^= If[Length[{inds}] == 1, "\[DifferentialD]", "\[PartialD]"]; MakeBoxes[sp, _] ^= "\[ThinSpace]"; bb /: MakeBoxes[bb[x__], _] := RowBox[Map[ToBoxes[#] &, {x}]]; FractionBox[ToBoxes[bb[dd^Plus[inds], g]], ToBoxes[Apply[bb, Riffle[Map[bb[dd, #] &, Select[({vars}^{inds}), (# =!= 1 &)]], sp]]]]], Derivative /: MakeBoxes[Derivative[inds__][g_][vars__Symbol], form : TraditionalForm | DAFX] := Module[{bb, dd, sp, vd}, MakeBoxes[dd, _] ^= If[Length[{inds}] == 1, "\[DifferentialD]", "\[PartialD]"]; MakeBoxes[sp, _] ^= "\[ThinSpace]"; vd[f_, v__, fmt_] := DisplayForm@ToBoxes[f[v], fmt]; bb /: MakeBoxes[bb[x__], _] := RowBox[Map[ToBoxes[#] &, {x}]]; FractionBox[ToBoxes[bb[dd^Plus[inds], vd[g, vars, form]]], ToBoxes[Apply[bb, Riffle[Map[bb[dd, #] &, Select[({vars}^{inds}), (# =!= 1 &)]], sp]]]]] ] ]; Message[AbleitungsForm::ON, OptionValue[AuchStandard], OptionValue[MitArgumenten]];) AbleitungsForm::noset="AbleitungsForm ist nicht aktiv."; AbleitungsForm[Off] := (If[Position[FormatValues[Derivative],DAFX]!={}, abFOpts={}; (FormatValues[Derivative] = Delete[FormatValues[Derivative], Position[FormatValues[Derivative], DAFX][[1, 1]]];); Message[AbleitungsForm::OFF], Message[AbleitungsForm::noset]];) AbleitungsForm[]:= If[abFOpts==={}, Message[AbleitungsForm::noset], Message[AbleitungsForm::ON,abFOpts[[1]],abFOpts[[2]]]];
You may switch the display of derivatives on or off by calling AbleitungsForm[On] or AbleitungsForm[Off].
AbleitungsForm[] yelds a message displaying the status
Normally this changes the display for TraditionalForm only. There are two Options: Option AuchStandard->True makes it work in StandardForm too Option Mit Argumenten->True schows the functions Arguments.
Some Remarks
The function changes the FormatValues of Derivative. To see, where in the FormatValues these changes took place, I added the meaningless DAFX to the form parameter, which is used when switching Off.
As @Sjoerd pointed out, you can't paste the displayed expression as is (it's a Form). But this works:
equ = f''[x] == x f'[x] equ // FullForm DSolve[equ, f[x], x]
![displayed]: https://i.sstatic.net/SNEOs.png