You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 1. Make sure the plugin development plugin is enabled
33
+
## "Classic" Setup
34
+
35
+
### 1. Make sure the plugin development plugin is enabled
6
36
7
37
Start IDEA, go to *Settings -> Plugins* and make sure that `Plugin DevKit` is installed and enabled.
8
38
If it's not, install it now.
9
39
10
-
## 2. Clone the project from GitHub
40
+
###2. Clone the project from GitHub
11
41
12
42
Typically you check out your fork of the project on GitHub here.
13
43
14
-
## 3. Import the project into IDEA
44
+
###3. Import the project into IDEA
15
45
16
46
Select the *Import Project* option (e.g. by pressing shift twice and entering "import project")
17
47
and navigate to the cloned repository directory when prompted.
18
48
19
-
### Model
49
+
####Model
20
50
21
51
Chose "From existing sources" when prompted for a model.
22
52
23
-
### SDK Setup
53
+
####SDK Setup
24
54
25
55
If you dont have a plugin SDK yet, click `+` to add an SDK and select *IntelliJ Platform Plugin SDK*
26
56
@@ -29,11 +59,11 @@ If you dont have a plugin SDK yet, click `+` to add an SDK and select *IntelliJ
29
59
30
60
Select your plugin SDK as the one to use.
31
61
32
-
### Other
62
+
####Other
33
63
34
64
The remaining options can be left at default
35
65
36
-
## 4. Change the project type
66
+
###4. Change the project type
37
67
38
68
Open the projects iml file (it should be named `gitflow4idea.iml` by default) and replace its contents with this:
39
69
@@ -53,24 +83,23 @@ Open the projects iml file (it should be named `gitflow4idea.iml` by default) an
53
83
54
84
Then close and reopen the project to apply the changes.
55
85
56
-
## 5. Add git4idea dependency
86
+
###5. Add git4idea dependency
57
87
58
88
1. Open the module settings and navigate to *Modules -> gitflow4idea (or your project name here)* and select the *Dependencies* tab.
59
89
2. Click add -> "JARs or directories" and add `git4idea.jar`.
60
90
This can be found in your IDEA installation directory under `plugins/git4idea/lib`.
61
91
3. Change the scope of the added JAR to **provided**.
62
92
63
-
## 6. Create a run configuration
93
+
###6. Create a run configuration
64
94
65
95
Go to Run/Debug configurations and create a new configuration of the type `Plugin`. Under "Use classpath of module" select the project (`gitflow4idea` by default).
66
96
Click run. A new IDEA instance should start with the plugin running.
67
97
68
98
And that's it. You can now make changes to the source and run them.
69
99
70
-
## Notes & hints
100
+
###Notes & hints
71
101
72
-
### Language level
102
+
####Language level
73
103
74
104
This project is written to target Java 6, so make sure to set the project language level appropriately
75
-
to avoid accidentally using newer features. You can do so in the module settings under "modules -> gitflow4idea -> sources -> Language level".
76
-
105
+
to avoid accidentally using newer features. You can do so in the module settings under "modules -> gitflow4idea -> sources -> Language level".
0 commit comments