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

Doc about auto completion.

This commit is contained in:
Cedric Beust 2015-12-13 05:43:11 +04:00
parent bd0625bf4c
commit 75c4a2b52d

View file

@ -89,6 +89,7 @@
The Kobalt IDEA plug-in offers the following features: The Kobalt IDEA plug-in offers the following features:
<ul> <ul>
<li>Synchronization of build files.</li> <li>Synchronization of build files.</li>
<li>Automatic completion of <code>Build.kt</code></li>
</ul> </ul>
</p> </p>
<h3 class="section" indent="1" id="sync-build-file">Synchronization of build files</h3> <h3 class="section" indent="1" id="sync-build-file">Synchronization of build files</h3>
@ -145,6 +146,31 @@ dependencies {
<img src="../pics/structure-4.png" class="img-rounded"/> <img src="../pics/structure-4.png" class="img-rounded"/>
</p> </p>
<h3 class="section" indent="1" id="autocompletion">Auto completion of Build.kt</h3>
<p>
The plug-in will automatically turn on auto-completion of your <code>Build.kt</code>
file if it's located in the <code>kobalt/src</code> directory. Once this is
enabled, you can use everything you use on Kotlin files (auto completion, jump
to symbols, even refactorings).
</p>
<p>
The plug-in also understands the <code>plugins()</code> directive:
</p>
<ul>
<li>Add a plug-in to your build file:
<pre class="brush:java">
val plugins = plugins("com.beust.kobalt:kobalt-line-count:0.17")</pre>
</li>
<li>Sync your build file, as explained in the previous section.</li>
<li>You can now import the new symbols and use the new configuration:
<pre class="brush:java">
import com.beust.kobalt.plugin.linecount.lineCount
val lc = lineCount {
suffix = "**Plugin.kt"
}</pre>
</li>
</ul>
<h2 class="section">Source code and bug reports</h2> <h2 class="section">Source code and bug reports</h2>
<p> <p>
The source code <a href="http://github.com/cbeust/kobalt-intellij-plugin">can be found on github</a>. The source code <a href="http://github.com/cbeust/kobalt-intellij-plugin">can be found on github</a>.
@ -154,7 +180,7 @@ dependencies {
<p align="center"> <p align="center">
<img src="../pics/show-log.png" class="img-rounded"/> <img src="../pics/show-log.png" class="img-rounded"/>
</p> </p>
</div> </div>
<!-- Table of contents --> <!-- Table of contents -->
<div class="col-md-3" id="table-of-contents"> <div class="col-md-3" id="table-of-contents">