Plugin to add support for specifying global SDK definitions at the project level. It loads YML config file to define language SDK for the specific module or project.
In order to import custom SDKs to IDE, the sdk-import.yml
file has to be created in the parent .idea
directory.
For example:
import:
- module: "python-data-science-samples"
path: "C:/PYTHON/Miniconda3-py312_24.1.2-0/envs/python-3.12.2/python.exe"
type: "PYTHON"
- module: "python-data-science-samples.jupyter-notebook"
path: "C:/PYTHON/Miniconda3-py312_24.1.2-0/envs/python-3.9.1/python.exe"
type: "PYTHON"
- module: "python-data-science-samples.java-samples"
path: "C:\\JAVA\\.gradle\\jdks\\adoptium-18-x64-hotspot-windows"
type: "JAVA"
Where:
module
should match the Intellij's module name. Nested modules are separated with.
. For the module name matching project name SDK will be also added to the Project,path
is the location of SDK on files system,type
should be one of the supported SDKs enumerate values,
In order to load the config file, developer has to choose "Tools" -> "Reimport SDK" action.
After Intellij will load the SDK and index the files, code autocompletion should be enabled.
The Plugin supports the following SDKs:
- Python (
PYTHON
import type) - Java (
JAVA
import type)
This plugin can cooperate with Python Gradle Plugin to make working with multimodule projects easier.
It is possible to generate the new Gradle Python project with this plugin.
New Project Generator should be available in the "New Project" wizard window. It allows bootstrapping a simple Python project.
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "SDK-Import" > Install
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.