Ctrl+P
This vscode plugin provides a document formatter for .cabal files, using cabal-fmt. You need install cabal-fmt manually before using this extension.
cabal-fmt