Linking to external Scala API docs in IntelliJ - scala

Despite adding an external URL to the JavaDocs of my Scala 2.10.4 SDK library setup in IntelliJ 15.0.1 (Project Settings -> Global Libraries -> scala-sdk-2.10.4 -> JavaDocs) [see screenshot below], the little blue arrow that (should) link to external documentation in the quick documentation viewer ([F1]) does not link to the external Scala documentation, instead remaining grayed out. Neither does the keyboard shortcut to view external documentation work ([Shift]-[F1]). How do I link to the external ScalaDoc SDK API documents, so that I can quickly open the online documentation (locally or on scala-lang.org, doesn't matter) for the content my cursor is on in the IntelliJ editor in the browser?

Unfortunately this is still an outstanding feature for the Scala plugin:
https://youtrack.jetbrains.com/issue/SCL-5550
This was added 4 years ago and commented upon as quick to implement - perhaps chase JetBrains to implement

Related

Android Studio - how to enable Kotlin documentation in Flutter project?

I need to add some platform specific code and I would like to have a possibility to show quick kotlin documentation when press ctr+q. How can I achieve that, other than opening a kotlin file through file -> open?
I have found an answer by accident - in settings -> languages & frameworks there's an experimental feature, which helps to show quick documentation.

too many JAR files after importing play 2.5 application eclipse

I followed the documentation at https://www.playframework.com/documentation/2.4.x/IDE for importing a Play Application into Eclipse. After that, the project in the project explorer lists a lot of JAR-files, see screenshot screenshot.
In a video I saw, this was not the case. What am I doing wrong and how to correct it? How did others get the compact list of just the necessary folders
I don't really see a problem here. Play Framework is a framework - you get nice abstractions but as with every framework there is a price to pay - lot's of libraries: Play itself, Akka, Twirl, Jackson, Apache Commons, Log4j, etc. - these are all the base of Play and you shouldn't be worried.
Here is a screenshot of a freshly imported Play 2.5 project in IntelliJ (based on the simple play-java Activator template):
I have same issue and I hide it in Eclipse. Do you see the key word Referenced Libraries in documentation picture.
They hide those *.jar files.
There is my answer. Please see the two picture. Click White inverted triangle in right top.
In Java, check show Refrenced Libraries Node
In Java EE, check Customize View → Libaries from external

Shortcut for reference searching in Scala IDE (cmd+shift+G)

I'd like to find all references to certain methods within my workspace. I used to do this using Eclipse's ⌘+shift+G / ctrl+shift+G hotkeys for all my Java classes, but now nothing shows up when searching in Scala classes using the Eclipse Scala IDE.
I'm currently using Scala IDE for Eclipse v3.0.3.
Is this reference searching functionality already supported in the Scala IDE, and if so, what is the shortcut for it?
Thanks.
I had this problem too and I ended up installing the Eclipse Quick Search plugin from the Spring team that normally ships as part of STS. It has no Spring dependencies and is easy to install separately from the Eclipse Marketplace. Use ⌘+shift+L and start typing and you get incremental search results.
Find references is implemented as feature but it is far away from being as powerful as the Java implementation.
You can find the actual key combination if you do a right click in the editor area and navigate to the "References" entry.
However, if the find references feature doesn't find anything, then it is clearly a bug and it would be nice if you could report your use case in the ticket tracker.
Did you try using Scala-Search? It's available from the same update site as the Scala IDE itself, and it should find Scala references. See Features docs.

How to add Jasmine autocomplete to WebStorm 7.0

I search around the net but did't find a concrete answer. Please help - How to add Jasmine autocomplete to WebStorm?
Here's the step-by-step process for adding library definitions, which are provided courtesy of borisyankov/DefinitelyTyped at GitHub.
In WebStorm, open the Settings dialog (File > Settings).
Under the Project Settings category, navigate to JavaScript > Libraries.
Click the Download button on the right side. This opens the Download Library dialog.
Select "TypeScript community stubs" from the combo box.
Find the library you're looking for, select it and click Download and Install.
To restrict usage of a library definition to specific files/folders, use the Manage Scopes dialog. In your case, you might consider it appropriate to only show Jasmine autocomplete in your test spec folder.
NOTE: Even though the dialog is named Download Library, this process is only for downloading the definition of the library (method signatures, types, etc). You still need to download the actual library yourself to use it.
You have to download jasmine.js and configure it as a library (Settings/javaScript/Libraries, Add...)

Effective comment annotation in Scala Eclipse Plugin?

I was wondering if anyone can explain where and how comment documentation in Scala is applicable - in particular, the Eclipse plugin. For example, is there a way to comment a procedure, that might later show as a help-hint while using Eclipse? I'm not entirely sure how to get these Javadoc like effects when using Scala Eclipse. I've checked the various FAQs for the plugin, it's possibly not supported but I can't find an explanation either way.
You need to use Scaladoc, but it isn't supported completely yet.
ScalaDoc on hover/completion is not yet integrated in the Scala IDE.
The good news is that this feature is currently under development and we plan to have intial support for it in the coming months. A Pull Request for adding ScalaDoc in support in the Scala Presentation Compiler has been recently merged.
A Pull Request on the Scala IDE project will follow. You can track progress on this feature here