Skip to content

↑↓ moveEnter openEsc close

Quick actions and refactorings in Visual Studio

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

In Microsoft Visual Studio, press Ctrl+. or Alt+Enter.

WindowsCtrl.orAltEnter

Either combination works; the keyboard shows the first. What else uses Ctrl+.? · What else uses Alt+Enter?

More Visual Studio shortcuts: editing

ActionKeys
RenameCtrlR,CtrlR
Extract methodCtrlR,CtrlM
Comment the selectionCtrlK,CtrlC
Uncomment the selectionCtrlK,CtrlU
Format the documentCtrlK,CtrlD
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