PyCharm Setup
These instructions should also apply to IntelliJ IDEA with the Python plugin installed although the location of Python SDK settings will be different.
In order to take full advantage of PyCharm’s smart assistance features, such as code completion, PyCharm needs to have access to the libraries used in your code.
The following instructions will guide you through setting up your local environment to have access our sr.robot3
API.
- Open your robot code project in PyCharm.
- Head to File → Settings or PyCharm → Preferences on a Mac.
- Select
Project
→Python Interpreter
from the list on the left. - Click the
+
symbol at the top of the packages list to install a new library. - Search for
sr.robot3
then clickInstall Package
If this results in an error, try selecting theInstall to user's site packages directory
checkbox at the bottom of the dialog and try again. - All done. You can now close the Settings window.
You should now be able to use code completion and have quick access documentation by pressing CtrlQ (or ⌃J on a Mac)