mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
This commit is contained in:
parent
7f968ecc79
commit
4808b6db7c
@ -181,8 +181,13 @@ You can use the following methods:
|
|||||||
|
|
||||||
##### How do I set the project SDK?
|
##### How do I set the project SDK?
|
||||||
|
|
||||||
##### To set the project-level SDK: ```ProjectRootManager.getInstance(project).setProjectSdk(Sdk jdk);```
|
##### To set the project-level SDK:
|
||||||
##### To set the project-level SDK name: ```ProjectRootManager.getInstance(project).setProjectSdkName(String name);```
|
|
||||||
|
```ProjectRootManager.getInstance(project).setProjectSdk(Sdk jdk);```
|
||||||
|
|
||||||
|
##### To set the project-level SDK name:
|
||||||
|
|
||||||
|
```ProjectRootManager.getInstance(project).setProjectSdkName(String name);```
|
||||||
|
|
||||||
Note that by default, the project modules use the project SDK. Optionally, you can configure individual SDK for each module.
|
Note that by default, the project modules use the project SDK. Optionally, you can configure individual SDK for each module.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user