-
Notifications
You must be signed in to change notification settings - Fork 80
[dev] Set up Pycharm for wrye bash
Pycharm is the recommended way of developing Wrye Bash. This way we can have common code formatting, warnings, run/debug configurations etc - plus Wrye Bash being a rather big project really needs the support an IDE can offer (as in you introduce bugs if not using an IDE).
-
Right click in a folder where you want to place the WB folder and click 'Git Bash Here'.
-
If you have permissions for the main repo, clone it:
git clone https://github.com/wrye-bash/wrye-bash.git
-
Otherwise, fork the repo and clone your fork:
git clone https://github.com/YOUR_USERNAME_HERE/wrye-bash.git
-
You should now have a
wrye-bash
folder containing your local copy of the repo. Do not launch PyCharm yet! If you already have, delete the.idea
folder it created inside yourwrye-bash
folder. -
Download our shared
.idea
folder and place it in yourwrye-bash
folder. You can also try cloning the repo, but I found that that breaks once you build WB. (TODO: maybe just include it as a submodule?) -
Now you can launch PyCharm. You should have the correct inspection settings, code style, launch configurations, etc.
It's a good idea to backup your Pycharm settings too - used to be done with IntelliJ Configuration Server Plugin but this is deprecated in favor of Settings Repository. End result is a repository with your IDE settings - mine is at https://github.com/Utumno/pycharm-settings.