Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.18 KB

pycharm.md

File metadata and controls

56 lines (37 loc) · 1.18 KB

PyCharm

Pros

  • great code navigation and indexing
  • great git tooling

Cons

  • not free
  • sometimes slow project startup
  • debugging is more difficult to set up than with VSCode in more complex docker-compose configurations

References

Guides

Django shell for PyCharm Python console

  1. open Pycharm settings and go to: Build,Execution,Deployment -> Console -> Python Console
  2. add the environment variable: DJANGO_SETTINGS_MODULE=config.settings (python module path to your settings.py)
  3. paste the following code inside the "Starting script" section
from django_extensions.management.shells import import_objects
from django.core.management.color import color_style

globals().update(import_objects({"dont_load": [], "quiet_load": False}, color_style()))

Keyboard Shortcuts

# create new file in current directory
strg + alt + einfg

# navigate files
alt + home

# new line before current
strg + alt + enter

# navigate definitions
strg + B
alt + shift + ← /→

# extend selection
strg + w
strg + shift + w

# select same word
alt + j