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:
parent
8ff4a4c717
commit
98dd80ecef
1 changed files with 6 additions and 12 deletions
|
@ -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 → Kobalt → 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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue