Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.43 KB

File metadata and controls

32 lines (26 loc) · 1.43 KB

Keymap

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

File Templates

Use file templates to add boilerplate text to every new python file

  1. Preferences(Settings) > Editor > File and Code Templates
  2. Select "Python Script" under Files
  3. Add the text you want added to every new python file
  4. Click Apply, Click Ok
  5. Test