Here is a table of useful hotkeys/shortcuts to configure. Configure and look up shortcuts within Preferences(Settings on windows)>Keymap
The table provides the name of the shortcut and the combination of keys I personally use on a Mac. You are welcome to use any key combination you prefer
| Name | Keys | Description |
|---|---|---|
| Show Intention Actions | Cmd+1 | Click on a line and use this shortcut to preform various actions |
| Find in Path... | Ctrl+H | Search all files or a subset |
| Symbol... | Shift+Cmd+M | Locate a method,function,variable,etc |
| File... | Shift+Cmd+R | Locate a file |
| Class... | Shift+Cmd+T | Locate a class |
| Declaration | Cmd+Left Click | Jump to the class/method/function declaration |
| Find Usages | Shift+Cmd+G | Find usages of active object |
| Recent Files | Cmd+E | View recently edited files |
| Run... | Cmd+T | Run a python script |
| Move Statement Up/Down | Cmd+UpArrow/Cmd+DownArrow | Move a line of text up/down |
| Duplicate Line or Selection | Opt+Cmd+UpArrow/Opt+Cmd+DownArrow | Copy a line of text up/down |
| Add Selection to Next Occurence | Ctrl+G | Place a new cursor at the next occurence of an active string |
Use file templates to add boilerplate text to every new python file
- Preferences(Settings) > Editor > File and Code Templates
- Select "Python Script" under Files
- Add the text you want added to every new python file
- Click Apply, Click Ok
- Test