1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 03:57:11 -07:00

Update the IDEA doc.

This commit is contained in:
Cedric Beust 2016-06-11 08:33:24 -07:00
parent 8ff4a4c717
commit 98dd80ecef

View file

@ -129,23 +129,17 @@ val jcommander = project {
</p>
<pre class="brush:java">
./kobaltw assemble</pre>
<h2 class="section" id="generate-idea-files">5. IDEA users: generate IDEA files</h2>
<h2 class="section" id="import-in-idea">5. IDEA users: Import your project in IDEA</h2>
<p>
<div class="bs-callout bs-callout-warning">
<h4>Note</h4>
You need to have a valid <code>Build.kt</code> file for this command to work.
</div>
<p>
This will generate several files depending on the content of your build file. You can then launch IDEA and open this project directly.
You can now open your project in IDEA and if you have the Kobalt IDEA plug-in installed, you
will be asked whether you want to import that project as a Kobalt project.
</p>
<h2 class="section" id="idea-plugin">6. IDEA users: sync your build file</h2>
<h2 class="section" id="idea-plugin">6. IDEA users: Sync your build file</h2>
<p>
If you're using Intellij IDEA, make sure you've <a href="../idea-plug-in/index.html">installed the Kobalt plugin</a> and then go to <code>Tools &rarr; Kobalt &rarr; Sync Build File</code>. Once the build file is synchronized, the errors should
disappear
and you can now use all the regular functions of IDEA on <code>Build.kt</code> just like any other Kotlin
files (auto completion, jump to symbol, etc...).
Once your project has been imported as a Kobalt project in IDEA, bring up the Kobalt window (sideways on the
right side) and click the Sync icon, which will synchronize your build file with IDEA.
</p>
<h2 class="section" id="next-steps">7. Next steps</h2>