title: How to set up Scala API docs for IntelliJ
body: <p><code>Scala</code> is installed using <code>homebrew</code>, and when I create a new Scala project, I use the path <code>/usr/local/opt/scala/idea</code> with the proper symlinks</p>
  
  <p><img src="https://i.stack.imgur.com/aiS4z.png" alt="IntelliJ create new Scala project"></p>
  
  <p>IntelliJ detects the compiler and libraries correctly, auto-complete, compilation and running works fine. </p>
  
  <p>The problem is IntelliJ does not detect the Scala API documentation, even though the Javadocs path is correct</p>
  
  <p><img src="https://i.stack.imgur.com/3Kacd.png" alt="Scala API docs path"></p>
  
  <p>The contents of the directories look correct too:</p>
  
  <p>hanxue-mac:idea hanxue$ ls doc/scala-devel-docs/api
  index       index.js    package.html
  index.html  lib     scala
  hanxue-mac:idea hanxue$ ls /usr/local/opt/scala/idea
  doc lib src
  hanxue-mac:idea hanxue$ ls /usr/local/opt/scala/idea/doc/scala-devel-docs/api
  index       index.js    package.html
  index.html  lib     scala</p>
  
  <p>This is a screenshot when I select a Scala class and press <kbd>Ctrl</kbd>+<kbd>J</kbd></p>
  
  <p><img src="https://i.stack.imgur.com/bHn02.png" alt="Scala documentation not found"></p>
  
  <p>Note that I have the same problem in <code>IntelliJ Idea 132.719</code> as well as <code>IntelliJ Idea 12 CE</code>. How should I set up the Javadocs path for Scala API?</p>