PyCharm
A professional IDE specialized for Python development, covering all Python domains from scientific computing to web development
Shortcuts that dramatically streamline Python coding with Python-specific completion, formatting, and import management features
Ctrl+Space
Basic code completion
Show basic code completion suggestions.
💡 Hint: Space for completion
🎯 Quickly complete variable names, function names, and module names to prevent typos
Ctrl+Shift+Space
Smart code completion
Show type-aware code completion suggestions.
💡 Hint: Smart completion
🎯 Instantly select appropriate methods and attributes with more accurate type-aware completion
Ctrl+Alt+L
Reformat code
Reformat code according to code style settings.
💡 Hint: Layout
🎯 Automatically format code according to coding standards like PEP 8
Ctrl+Alt+O
Optimize imports
Remove unnecessary imports and organize imports.
💡 Hint: Optimize
🎯 Remove unnecessary imports and properly organize import statements to improve readability
Alt+Insert
Generate code
Generate constructors, getters/setters, methods, etc.
💡 Hint: Insert to generate
🎯 Automatically generate constructors, properties, and special methods to increase development speed
Ctrl+P
Parameter info
Show parameter information for method calls.
💡 Hint: Parameter
🎯 Display function and method parameter information to quickly enter correct parameters
Ctrl+Q
Quick documentation
Show documentation for the selected element in a popup.
💡 Hint: Quick doc
🎯 Check function and class documentation in a popup to instantly understand API usage
Ctrl+Alt+T
Surround with
Surround selected code with if, try-catch, for, etc.
💡 Hint: Template
🎯 Automatically surround selected code with blocks like try-except, if, or for