@@ -33,7 +33,7 @@ Recommended _Format on Save_ configuration (**IntelliJ IDEA > Preferences > Tool
33
33
2 . Check "Optimize imports" (Files: Java )
34
34
3 . Check "Run code cleanup". This removes unused imports.
35
35
36
- ##### Making IntelliJ Feel Similar to Eclipse (Optional)
36
+ #### Making IntelliJ Feel Similar to Eclipse (Optional)
37
37
38
38
Set IntelliJ to use the Eclipse compiler by going to * IntelliJ IDEA > Preferences > Build, Execution, Deployment > Java Compiler*
39
39
To make IntelliJ work the same way as Eclipse with respect to Problems View and recompilation you need to:
@@ -42,6 +42,31 @@ To make IntelliJ work the same way as Eclipse with respect to Problems View and
42
42
2 . Open the problems view: View > Tool Windows > Problems
43
43
3 . Navigate the problems with Cmd ⌥ ↑ and Cmd ⌥ ↓
44
44
45
+ #### Mx Development
46
+
47
+ Developing mx itself can also be done using IntelliJ with the python plugin (or PyCharm) and ` mx intellijinit ` (in the
48
+ mx repository or any other mx suite) as described above is sufficient to add projects for the mx sources.
49
+
50
+ The main source code is generated as an IntelliJ project named ` mx ` . In the * Project* view, it will appear
51
+ as ` src [mx] ` (similarly there is the ` mx_tests ` project that appears as ` tests [mx_tests] ` ).
52
+
53
+ ##### Formatting
54
+
55
+ Since 2023.2, IntelliJ with the python plugin (and PyCharm) have built-in support for the * Black* formatter.
56
+ It can be enabled under ` Settings > Tools > Black ` and it is recommended to turn on both ` On code reformat `
57
+ and ` On save ` .
58
+ In the same setting window, a ` black ` executable with the correct version should be configured, see
59
+ the [ Style Guide] ( ./Styleguide.md ) for more information.
60
+
61
+ By default, this will produce a notification popup everytime * Black* fails to format a file, including when the file is
62
+ ignored by the formatter.
63
+ This can become annoying and can be turned off under:
64
+
65
+ ```
66
+ Settings > Appearance & Behavior > Notifications > Black > Popup type: No popup
67
+ ```
68
+
69
+ As of 2023.2, there is no way to separately configure the different popup severities (error vs. informational).
45
70
46
71
### Eclipse
47
72
This section describes how to set up Eclipse for development. For convenience, ` $GRAAL ` denotes your local repository.
0 commit comments