Skip to content

↑↓ moveEnter openEsc close

Comment with line comment in PyCharm

PyCharm 2025.2 · 48 shortcuts · checked Nov 2026 · Source: JetBrains docs

In PyCharm, press Cmd+/ (Mac), Ctrl+/ (Windows, Linux).

What else uses Cmd+/? · What else uses Ctrl+/?

More PyCharm shortcuts: editing

ActionMacWindowsLinux
Show intention actions and quick fixesOptionEnterAltEnterAltEnter
Basic completionCtrlSpaceCtrlSpaceCtrlSpace
Parameter infoCmdPCtrlPCtrlP
Reformat codeOptionCmdLCtrlAltLCtrlAltL
Optimize importsCtrlOptionOCtrlAltOCtrlAltO
Duplicate the lineCmdDCtrlDCtrlD
Delete the lineCmdBackspaceCtrlYCtrlY
Move the statement upShiftCmd↑CtrlShift↑CtrlShift↑
Move the statement downShiftCmd↓CtrlShift↓CtrlShift↓
Extend the selectionOption↑CtrlWCtrlW

All 13 in editing · All 48 PyCharm shortcuts