PyCharm Powerful Python IDE - chaolunner/RaspberryPi GitHub Wiki
The Python IDE for Professional Developers.
Remote Raspberry Pi
-
Download PyCharm Professional - only professional version have remote function
-
Open
PyCharm -> Preferences -> Project Interpreter
-
Click the Gear Icon and select
Show All... -> + -> SSH Interpreter
, then you can see the following interfacehttps://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-interpreter-remote.png
-
Enter the password, default is "raspberry"
https://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-interpreter-password.png
-
Choose you want to used Python version
https://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-interpreter-version.png
-
When you have finished setting it up, it should be as follows
https://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-interpreter-completed.png
-
Open
Tools -> Deployment -> Configure -> Connection
, Fill in as followshttps://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-connection.png
-
Open
Tools -> Deployment -> Configure -> Mappings
, Fill in as followsDeployment path
the recommended directory is/Desktop/py
https://github.com/chaolunner/RaspberryPi/wiki/images/pycharm-mappings.png
-
Click
Tools -> Deployment -> Upload to pi@<IP>
, if you dont want to do this step every time before run, you can enableTools -> Deployment -> Automatic Upload (always)
-
Click
Run -> Run '...'
or use shortcutsCtrl
+R
, run the program
Quick Start
-
Python Code Insight (Ctrl + Q)
-
Reformatting Source Code (Ctrl + Alt + L)
-
Menus and Toolbars (select View | Toolbar - Show/Hide Forward and Back Buttons)
-
Creating and Running setup.py (choose Tools | Create setup.py)
-
Using quick fix (Alt + Enter)
-
Running Inspections (choose Code | Inspect Code)
Incomplete suggestion list for "gpiozero" library
It could be solved with pyi stubs. With more details to see: