Skip to content

↑↓ moveEnter openEsc close

Format the document in Visual Studio

Visual Studio 2022 (17.14) · 55 shortcuts · checked Nov 2026 · Source: Microsoft docs

In Microsoft Visual Studio, press Ctrl+K Ctrl+D.

WindowsCtrlK,CtrlD

A chord: press each combination in turn. What else uses Ctrl+K Ctrl+D?

More Visual Studio shortcuts: editing

ActionKeys
Quick actions and refactoringsCtrl.orAltEnter
RenameCtrlR,CtrlR
Extract methodCtrlR,CtrlM
Comment the selectionCtrlK,CtrlC
Uncomment the selectionCtrlK,CtrlU
Format the selectionCtrlK,CtrlF
Duplicate the line or selectionCtrlD
Delete the lineCtrlShiftL
Move the line upAlt↑
Move the line downAlt↓

All 19 in editing · All 55 Visual Studio shortcuts