intellij-14

Intellij indents 4 spaces when I have configured it to do 2 spaces (LESS)

本小妞迷上赌 提交于 2019-12-05 00:30:04
On Intellij IDEA 14, I have tried to set my preferences in Editor > Code Style > LESS to do 2 space indents but no matter what I do, my code ends up getting formatted with 4 space indents. How do I get it to do 2 space indents for LESS? If your project has an ".editorconfig" file, IntelliJ 14 uses that by default (which overwrites your settings). If you absolutely do not wish to use these settings, you need to disable the editorconfig plugin. Not as likely, but if you make a scratch buffer and rename it to filename.ext. It does not honor the code style for *.ext, it defaults to tabs. You have

java.lang.NoClassDefFoundError: sbt/compiler/IC$Result

和自甴很熟 提交于 2019-12-04 20:47:37
Hope someone can help me to get rid of this issue. When I add addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0") to plugins.sbt then I get java.lang.NoClassDefFoundError: sbt/compiler/IC$Result plugins.sbt: logLevel := Level.Warn resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.3") addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0") build.sbt: name := "HelloWorld" version := "1.0" lazy val `helloworld` = (project in file(".")).enablePlugins(PlayScala) scalaVersion := "2.11.7"

Intellij - How to squash local branch only

空扰寡人 提交于 2019-12-04 16:29:45
问题 When using Git inside of Intellij, how do I squash all of my commits for a local branch? What settings do I use in the rebase branch window? I've tried setting the Onto to local/master and From to my branch, but then it goes and tries to merge master changes into my branch for each commit I did, even tho I typically rebase my branch onto master every morning...so there SHOULD be no conflicts. Yet it almost always finds conflicts and causes merge issues. I ONLY want to squash the branch

How do I turn on line numbers permanently in IntelliJ 14? [duplicate]

隐身守侯 提交于 2019-12-04 08:02:25
问题 This question already has answers here : How can I permanently enable line numbers in IntelliJ? (20 answers) Closed 3 years ago . How do I permanently turn on line numbers in IntelliJ IDEA 14? This post is outdated: how-can-i-permanently-have-line-numbers-in-intellij 回答1: Permanently (Ubuntu): File > Settings > Editor > General > Appearance > Show Line Numbers For just the current editor: View > Active Editor > Show Line Numbers 回答2: You can do it even faster, using the Search Everywhere tool

How do I run the code from a scratch file in IntelliJ 14?

余生长醉 提交于 2019-12-04 02:54:15
I've created a simple Java scratch file containing a class named " TestGenerics " containing some code and a main method. The code seems to be fine, however when I try to run it (by right clicking > Run 'TestGenerics.main()', I get this error: "Module not specified" Similar situation occurs with a scratch file containing Lua code, error message: ' Error running scratch.1 (2): Executable is not specified ' Any ideas? Meo This was previously not possible, but is now supported for some languages. such as Java and Ruby . For these languages, you should be able to run the scratch file in the same

Exception in thread “main” java.lang.ClassNotFoundException:

不羁岁月 提交于 2019-12-04 01:16:16
I recently installed intellij IDEA 14.0 and to make sure everything was working I created a simple Hello World program. I do not understand why the output is not correct and why I am getting this error. If someone could please help that would be great. This is the program: public class Hello { public static void main(String[] args) { System.out.println("Hello World!"); } } This is the error: Exception in thread "main" java.lang.ClassNotFoundException: Hello at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security

Intellij idea, detach editor window

一笑奈何 提交于 2019-12-03 16:58:02
问题 I have recently removed tabs from my Intellij setup, because with all the features available to navigate between files, who needs them? The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard? 回答1: The keyboard shortcut your are looking for is SHIFT + F4 (the action assigned to this shortcut is called

Run JUnit test in IntelliJ IDEA 14 without choosing configuration type

自闭症网瘾萝莉.ら 提交于 2019-12-03 15:01:27
问题 In IntelliJ IDEA 14 with Gradle plugin I would like to run JUnit test without being asked about configuration type. Problem occurs when I run test for the first time - there is no configuration for this run. I never run tests with Gradle in IDE so it would be acceptable to disable running test with Gradle. How to run JUnit test directly? 回答1: You can get rid of this annoying by adding idea.gradle.prefer.idea_test_runner=true to idea.properties file located in the bin directory of the IntelliJ

Building war with Gradle, Debugging with IntelliJ IDEA

时间秒杀一切 提交于 2019-12-03 14:35:57
问题 I have JavaEE webapp project(named ProjectA) developed in IntelliJ IDEA.It has build.gradle file that applies war plugin : apply plugin: 'war' I want to debug(or run) gradle generated war file instead of debugging auto generated intellij artifact . It's very important for me that I can update classes changed during debugging without need to restart server. How can I do it? Note that : 1) When click refresh button in gradle plugin tab ( ) Intellij updates all project configurations(for example

Intellij - How to squash local branch only

被刻印的时光 ゝ 提交于 2019-12-03 10:29:59
When using Git inside of Intellij, how do I squash all of my commits for a local branch? What settings do I use in the rebase branch window? I've tried setting the Onto to local/master and From to my branch, but then it goes and tries to merge master changes into my branch for each commit I did, even tho I typically rebase my branch onto master every morning...so there SHOULD be no conflicts. Yet it almost always finds conflicts and causes merge issues. I ONLY want to squash the branch commits and messages so when I push to Github it only sees one. It might be a little uncomfortable but you