...
- PyCharm Integration with Docker Devstack
- Working with Vagrant devstack and PyCharm (Vagrant devstack)
- Debugging edX platform tests in PyCharm (Vagrant devstack
Professional license provided in the private documentation. (edX Employees Only)
Git
Using Git in PyCharm
You can set up PyCharm to help you manage your Git repositories under Preferences => Version Control => Git. You can also choose which Git directories you want PyCharm to manage under the Preferences => Version Control tab by highlighting an "Unregistered root" and clicking the "+" (Add) button.
...
- "Update method:" should be "Branch default"
- "Auto-update if push of the current branch was rejected" should be unchecked
General Tips
Increase the memory available to PyCharm
The default memory allocated to PyCharm's Java JDK is too small for edx-platform, so you should update it:
...
Tip |
---|
The simplest way to create this is from the Help menu choose "Edit Custom VM Options.. |
- If you do not see this file, copy it from /Applications/PyCharm.app/Contents/bin/ using the terminal command: cp /Applications/PyCharm.app/Contents/bin/pycharm.vmoptions ~/Library/Preferences/PyCharm2018.1/
Increase the -Xms and -Xmx settings, e.g. something like the following:
No Format |
---|
-Xms512m
-Xmx2048m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-agentlib:yjpagent=delay=10000 |
...
Restart PyCharm
Note |
---|
|
...
Show open file in Navigator
A nice to have setting is to enable Autoscrolling autoscrolling in the Project Navigation within PyCharm
- On the top of the Navigation pane, to the right of the "Project" selection, select the "Gear" icon.
- Enable "Autoscroll to Source"Enable "Autoscroll from SourceAlways Select Opened File"
Now when you open a file it the Navigation pane will highlight that file.
...