PyCharm

PyCharm Cheatsheet #

PyCharm is an Integrated Development Environment (IDE) used for Python development. It offers powerful tools for coding, debugging, and project management.

Basic Navigation #

Command/OptionExampleDescription
Ctrl + ECtrl + EView recent files
Ctrl + Shift + ACtrl + Shift + AFind and run commands
Ctrl + NCtrl + NNavigate to class
Ctrl + Shift + NCtrl + Shift + NNavigate to file
Alt + F7Alt + F7Find usages of symbol
Ctrl + F12Ctrl + F12Show file structure

Editing Code #

Command/OptionExampleDescription
Ctrl + CCtrl + CCopy selected text
Ctrl + XCtrl + XCut selected text
Ctrl + VCtrl + VPaste text
Ctrl + ZCtrl + ZUndo
Ctrl + Shift + ZCtrl + Shift + ZRedo
Ctrl + DCtrl + DDuplicate current line
Ctrl + YCtrl + YDelete current line
Ctrl + /Ctrl + /Toggle line comment
Ctrl + Shift + /Ctrl + Shift + /Toggle block comment

Searching and Replacing #

Command/OptionExampleDescription
Ctrl + FCtrl + F search_termFind text in the file
Ctrl + RCtrl + R old_textReplace text in the file
Ctrl + Shift + FCtrl + Shift + FFind text in the project
Ctrl + Shift + RCtrl + Shift + RReplace text in the project

File Management #

Command/OptionExampleDescription
Ctrl + NCtrl + NNew file
Ctrl + SCtrl + SSave file
Ctrl + Shift + SCtrl + Shift + SSave all files
Ctrl + WCtrl + WClose current file
Ctrl + Shift + TCtrl + Shift + TReopen closed file
Alt + InsertAlt + InsertGenerate code (e.g., getters, setters)

Integrated Terminal #

Command/OptionExampleDescription
Alt + F12Alt + F12Open/close terminal
Ctrl + Shift + F12Ctrl + Shift + F12Toggle maximized editor and tool windows
Ctrl + Shift + VCtrl + Shift + VPaste from history

Debugging #

Command/OptionExampleDescription
Shift + F9Shift + F9Start debugging
F8F8Step over
F7F7Step into
Shift + F8Shift + F8Step out
Ctrl + F8Ctrl + F8Toggle breakpoint
Ctrl + Shift + F8Ctrl + Shift + F8View breakpoints

Project Management #

Command/OptionExampleDescription
Ctrl + Alt + Shift + SCtrl + Alt + Shift + SOpen Project Structure dialog
Ctrl + Alt + F7Ctrl + Alt + F7Show usages in the project
Alt + 1Alt + 1Toggle project view

Miscellaneous #

Command/OptionExampleDescription
Ctrl + Shift + ACtrl + Shift + AFind action
Ctrl + Alt + LCtrl + Alt + LReformat code
Ctrl + Shift + F10Ctrl + Shift + F10Run context configuration
Ctrl + Shift + ECtrl + Shift + EView recent files

This cheatsheet covers the essential PyCharm commands and options to help you navigate, edit, and manage your code efficiently in PyCharm.

PyCharm

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.