Skip to content

Commit 53dcfb4

Browse files
authored
Merge pull request #242 from danger/update-readme-1212
Update readme 12.12.2022
2 parents df33faf + 85840fa commit 53dcfb4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
-->
1313
## Master
14+
- Update README.md with guidance to enable auto-complete in Android Studio [@gianluz] - [#242](https://github.com/danger/kotlin/pull/242)
1415
- Update install script with Kotlin compiler 1.7.0 [@gianluz] - [#241](https://github.com/danger/kotlin/pull/241)
1516

1617
# 1.2.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ jobs:
111111
### Autocomplete and Syntax highlighting in IntelliJ IDEA or Android Studio
112112
You can activate the autocomplete following this additional steps:
113113
- Install danger on your local machine
114-
- Go to `Preferences -> Build, Execution, Deployment -> Compiler -> Kotlin Compiler` (`Preferences -> Kotlin Compiler` in Android Studio)
114+
- Go to `Preferences -> Build, Execution, Deployment -> Compiler -> Kotlin Compiler` (`Preferences -> Kotlin Compiler` in Android Studio, Recent Android Studio versions will show this option when you close all project and open the Settings from the initial screen)
115115
- At the bottom you will find a section `Kotlin Scripting`
116116
- Complete the field `Script template classes` with `systems.danger.kts.DangerFileScript`
117117
- Complete the field `Script templates classpath` with `/usr/local/lib/danger/danger-kotlin.jar`
118118
- Go to `Preferences -> Language & Frameworks -> Kotlin -> Kotlin Scripting`
119119
- Make sure the script template `DangerFileScript` is active and above the default `Kotlin Script`
120120
- Apply changes
121-
- If opening the `Dangerfile.df.kts` the autocomplete and syntax highlighting doesn't work, try to reboot your IDE.
121+
- If opening the `Dangerfile.df.kts` the autocomplete and syntax highlighting doesn't work, try to reboot your IDE or open the Dangerfile from your IDE as a single file.
122122

123123
### Using external maven dependencies into your Dangerfile
124124
You can use any external dependency by adding the following lines at the top of your `Dangerfile.df.kts`

0 commit comments

Comments
 (0)