Press &shortcut:ShowIntentionActions; in the editor to fix a highlighted error or warning, improve, or optimize a code construct. For some intention actions, you can open a preview by pressing &shortcut:QuickImplementations; (View | Quick Definition).

Context actions