intellij

Can IntelliJ IDEA properly format scala.html files and how do I enable it to do so?

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: IntelliJ IDEA 12 Ultimate and CE format the following line in my main.scala.html file (in a Play application) <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"> As <link rel="stylesheet" media="screen" href="@routes.Assets.at(" stylesheets /main.css")"> Yes. really. It breaks up a quoted string. I understand it thinks the string ends after at( , but this is an incorrect interpretation of the code. Can IntelliJ correctly format this code? How do I enable/use that formatting? 回答1: It's an open issue: http:/

IntelliJ 14 Java and Scala ClassNotFoundException

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently upgraded to IntelliJ 14 , then added Scala support. My main files stopped running. For example the GUI file, which has no errors and is a totally self contained hello world style for testing this error: Exception in thread "main" java.lang.ClassNotFoundException: GUI It makes no sense and I'm pretty frustrated that the IntelliJ devs are slacking in not auto-detecting a solution to this. I have tried everything to fix it. From settings, compilers, to making the project from scratch. I only had a bit of luck when making it from

IntelliJ IDEA and Maven: Can&#039;t complete tutorial, Maven Artifact Search returns no classes

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm working through the tutorial here for using Maven under IntelliJ: http://wiki.jetbrains.net/intellij/Creating_and_importing_Maven_projects I'm up to the 'working with dependencies' section. I try to add a Maven Dependency using Maven Artifact Search. In the 'search for class' tab, nothing shows up, no matter what I type in the search box. Under 'search for artifact', about two dozen dependencies show up at the start. Most of the discussions about this type of issue suggest a problem with Maven settings in IntelliJ. I confirmed that the

How Proguard works in Intellij Idea?

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using IntelliJ IDea 11.1.3 for Android development and I must admit it is a wonderful tool. I have few doubts about how to use Proguard with the IDE. I have found the option of Run Progaurd under Open Module Settings -> Facets as in the image below Run Proguard need a location of Config File which is defaulted to proguard-project.txt. Next is a check box which says Include system proguard file . What System Proguard File is referred to in this checkbox option? Given all the configuration of Proguard is in proguard-android.txt in Android

IntelliJ - Can&#039;t start - “JAVA_HOME does not point to a valid JVM installation”

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For every other StackOverflow question that's been asked about this, here , here , and here , I've followed all the steps to resolve this issue, and none have worked. When launching IntelliJ IDEA 64-bit on my 64-bit Windows 7 machine, I encounter the following error: The environment variable JAVA_HOME (with the value of "C:\Program Files\Java\jdk1.8.0_74") does not point to a valid JVM installation. However, the file path does exist: And in my Environment Variables, I have set JAVA_HOME to that location: I've tinkered around with putting it

IntelliJ: Change standard commit message

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am not sure if I did something stupid that my IntelliJ does this, but when I commit changes in SVN I always have the same predefined commit message in the text area ("changed imageservlet"), which is kinda annoying. (in a VERY light grey) Does anyone know how I can get rid of that or why this occured? 回答1: Under "Version Control" and "Confirmation", you have a check button : "Clear initial commit message". That might be a better solution in case you want to always have an empty text-field to input your commit message. Otherwise you can

Complete keyboard block in IntelliJ 13

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Sometimes when running IntelliJ it completely blocks all keyboard inputs in the program. E.g. I can click around a document with the mouse, I can even right click + paste. I cannot, however write anything through the keyboard or navigate with the arrows inside a document or between documents for that matter. The only keyboard related actions that work seem to be system related; alt + tab, ctrl + alt + delete, caps lock etc. also when tabbing to another window the keyboard works fine, so it is not a hardware issue. This seem to

IntelliJ Idea undo &#039;don&#039;t ask again action&#039;

匿名 (未验证) 提交于 2019-12-03 08:44:33
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've searched almost all preferences dialog on IntelliJ Idea and haven't found how to undo 'don't ask again action' on the update dialog 回答1: You'll find what you need in the run/debug configuration : Show dialog: Select this check box if you want to see the Update dialog every time you perform the Update application action. 文章来源: IntelliJ Idea undo 'don't ask again action'

Intellij Idea files with a red circle

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My Intellij Idea file names in the Project Explorer all have a small Red circle with "J" written on them. What would that represent? 回答1: IntelliJ recognises that this is a java file, but it's not marked as part of the project source. Check that your project is following the maven standards, and if not configure the pom to tell it where your sources are. You can fix this temporarily in IntelliJ by right clicking on the source root (that's 'java' in the maven standards) and choosing to 'Mark Directory As --> Source Root' 回答2: When you create

IntelliJ IDEA: how to revoke reformat code / optimize imports dialog?

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I've pressed Do not show this dialog in the future (screenshot taken from the web). It's been a while and now I want to change default reformat behavior. I can't seem to find an option to show this dialog again. 回答1: Update 2015/10: In current versions of IntelliJ (and likely Android studio and other IntelliJ based IDEs) there no longer seems to be this option as it is not needed. + Alt + L no longer shows the dialog, instead it directly reformats the file and gives you a hint that you can display the dialog using + Alt + Shift + L . That