I usually using Eclipse as default IDE but now I need to migrate to IntelliJ in my work.
I've worked with custom Emmet snippets created by myself in Eclipse, I exported them as an XML file in order to load on IntelliJ, but I was not able to found where to import it.
Do anyone know how to do it, please?
Importing of Eclipse templates currently is not supported. Only Code Style can be imported. Here is the post from 2014 in JetBrain's blog regarding that. Current progress could be checked at YouTrack.
Here is similar question on StackOverflow.
Related
I'm having some trouble on putting tornadoFx in my project. I'm using the last version of IntellIj, Kotlin and I'm also downloading tornadoFx from here:
TornadoFxGitLink
I added the pom file to Maven and I already tried to change a few things that Readme of tornado recommended to me like use 1.1 kotlin version or updating IDE.
The thing is that when I create a TornadoFx file in the project and I try to build, these error appears:
import tornado.fx is apparently an unresolved reference
Can someone explain why is this happening or why these errors normally appear?
Thanks in advance, I'm open to all questions due to my bad english.
That import is not needed or at all pointing to anything TornadoFX related. The only import you need for the most part is import tornadofx.*.
Install the TornadoFX IDEA plugin, and it will add the import for you. You should also start be reading the guide.
You should not be downloading TornadoFX manually, use Maven or Gradle to import the dependencies.
I recommend trying out TornadoFX in a simple standalone project first, for example by creating a template project using the TornadoFX IDEA Plugin. After you understand the basics you can revisit integrating it into an existing application.
I have been looking around the internet for a WebStorm plugin that will help with syntax-highlighting when working with Hugo. I have not been able to find one. Does anyone know of a Hugo WebStorm plugin that exists? Thanks for your help.
There is Go Template plugin from JetBrains. It allows to highlight and autocomplete the basic syntax at least. The plugin works with *.gohtml files, file extensions can be customised in "Editor/File Types" preferences.
I am new to both IntelliJ and the Play framework. I noticed that after installing IntelliJ and importing my first Play application, syntax highlighting is not working properly for both *.scala.html files and the routes files. I was able to modify the settings for the *.scala.html files to have them recognized as Scala files, but this isn't actually correct because the scala templating system is not pure Scala.
Here's a screenshot, in case it helps:
In the official Play video tutorials there seems to be a special syntax highlighting setting for these template files, but I don't know how to add this to IntelliJ. Here's a screenshot from this tutorial and how I would like the syntax highlighting to look:
Also, I couldn't find any solution for the routes file. Any help would be most appreciated!"
P.S. I enabled the Vim emulator during installation of IntelliJ. I don't know if this had any effect on the syntax highlighting defaults...
Playframework full support in only available in IntelliJ ultimate edition a commercial one.
Community edition (free version) that you probably are using doesn't have any support for playframework it only supports Scala (language).
Routes and *.scala.html files are part of the framework not the language.
You may like to purchase IntelliJ ultimate edition or would like to go for Scala IDE (based on eclipse) which is an open source IDE for java and scala, it seems to have full support for play 2.x.
For *scala.html syntax highlighting
Preferences > Plugins > Install Jetbrains plugin...
Then install the Scala plugin
Restart IntelliJ and syntax highlighting should work.
For routing file highlighting
Preferences > Editor > File Types
Under the registered patterns for HTML Routing Support For Play 2 Framework if *.routes isn't already there, add it. Or add however you plan on naming your routes files.
We use framework where for some classes there is xml configuration file. I want to write plugin which adds icon near field declaration (in eclipse that icons are called markers). When click on this icon user navigate to xml configuration for the field. This is similar to spring or hibernate plugin with xml config. How can I add that markers? Is there some open source plugin that do similar things?
Grab IntelliJ IDEA Community Edition source code from GitHub if don't have it already.
Please see com.intellij.navigation.GotoRelatedProvider, sample implementation can be found in com.theoryinpractice.testng.TestNGRelatedFilesProvider.
I know there is one for play1, but I don't find any for play2.
I hope the plugin can compile the templates to scala code automatically. It's not convenient now.
I just came across Scala IDE Play2 plugin for Eclipse Indigo/Juno and Scala IDE. The current features are
Syntax Highlighting (routes and templates)
Code completion (templates)
Formatter (routes)
Hyperlinking (routes and templates)
Note that hyperlinking to Java files is not supported for now. Also there are some limitations for the code completion feature, just take some time to read the doc. I didn't try it myself as I'm not working with Play2 right now, but thought it might be helpful for someone.
Edit: This answer is outdated. A Play Eclipse plugin has been written, as #Baztoune says.
There is no Play 2 plugin for Eclipse at the time I’m writing these lines. However, there is an eclipsify sbt command, provided by the Play 2 sbt plugin, which is able to generate an Eclipse project from a Play 2 application.
You won’t get syntax highlighting, contextual completion or code navigation inside Play 2 templates, but you can have them to be automatically compiled when saved by using the ~run sbt command (instead of just run). Check the Eclipse “General −> Workspace −> Refresh using native hooks or polling” option is enabled so it will take compiled templates changes into account.
Yes, here's how to get started:
Find the correct update site for your version of Eclipse from http://scala-ide.org/download/current.html.
In Eclipse go to Help->Install New Software. Use the update site from above to locate Scala related plugins.
Install both the Scala IDE for Eclipse plugin and the Play2 support in Scala IDE plugin. Note that the Play2 support in Scala IDE plugin is listed under the Scala IDE plugins checkbox.
I was unable to get this working at all starting from bare Eclipse, as many sources have suggested doing. The problem seems to be incompatible dependencies that only show up after much wasted time. The Scala IDE route eliminated this problem.
Yes. That's Scala IDE.
Update Site for Eclipse Juno and Kepler: http://download.scala-ide.org/sdk/e38/scala210/stable/site
Install with the following features:
Scala IDE for Eclipse
Scala IDE Plugins (incubation)
I use Scala IDE from http://scala-ide.org/ , then eclipsify my play2 project and import.
It works like a charm: it compiles my scala/java code.
You can get more details at this URL http://scala-ide.org/docs/tutorials/play20scalaide20/index.html