intellij-idea

How to disable xml highlight in intellij?

一曲冷凌霜 提交于 2021-02-10 14:33:41
问题 I want to disable background highlights of xml in intellij. So far I've tried: Editor > Inspections > disable xml Editor > Language injections > disable xml Editor > Color scheme > diasble background and foreground of all elements. UPD After disabling the Background of the Injected language fragment, I still have some brown background. 回答1: File | Settings | Editor | Color Scheme | General, disable the Background of the Injected language fragment : See also the help page explaining what is

How to disable xml highlight in intellij?

依然范特西╮ 提交于 2021-02-10 14:31:12
问题 I want to disable background highlights of xml in intellij. So far I've tried: Editor > Inspections > disable xml Editor > Language injections > disable xml Editor > Color scheme > diasble background and foreground of all elements. UPD After disabling the Background of the Injected language fragment, I still have some brown background. 回答1: File | Settings | Editor | Color Scheme | General, disable the Background of the Injected language fragment : See also the help page explaining what is

Maven project builds but dependencies seem to be unavailable in IntelliJ IDEA

时光总嘲笑我的痴心妄想 提交于 2021-02-09 09:33:11
问题 I have a multi-level Maven project that builds fine on the command-line using mvn clean install and builds in IntelliJ IDEA (2019.3) by manually running the parent project's clean and install phase. The Problems view shows nothing wrong. When I open files that have certain external libraries, they show as being unable to be resolved: I'm usually able to browse external libraries' contents in the project browser. I've noticed that these external libraries IntelliJ can't find are listed but not

Maven project builds but dependencies seem to be unavailable in IntelliJ IDEA

扶醉桌前 提交于 2021-02-09 09:33:10
问题 I have a multi-level Maven project that builds fine on the command-line using mvn clean install and builds in IntelliJ IDEA (2019.3) by manually running the parent project's clean and install phase. The Problems view shows nothing wrong. When I open files that have certain external libraries, they show as being unable to be resolved: I'm usually able to browse external libraries' contents in the project browser. I've noticed that these external libraries IntelliJ can't find are listed but not

How to typehint context in an IDE?

∥☆過路亽.° 提交于 2021-02-08 15:55:28
问题 I am using Closure::call (http://php.net/manual/en/closure.call.php) to call an external closure inside a class context. Here's a simple repro: class Foo { private $bar = 'baz'; /** * Executes a closure in $this context and returns whatever the closure returns. * * @param \Closure $closure * @return mixed */ public function callClosureInThisContext(\Closure $closure) { return $closure->call($this); } } class Closures { /** * @return \Closure */ public function getClosureForFoo() : \Closure {

kotlin + gradle+ intellij - no repositories are defined

半腔热情 提交于 2021-02-08 14:59:53
问题 anyone can help me out please? i got just project source code and dockefile from ex-colleague without explanation of work but i got in trouble now with time limitation. please please please. i got this error message below Could not determine the dependencies of task ':compileKotlin'. Could not resolve all files for configuration ':kotlinCompilerClasspath'. Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.41 because no repositories are defined. that's my

IntelliJ IDEA Gradle project not recognizing/locating Antlr generated sources

﹥>﹥吖頭↗ 提交于 2021-02-08 12:21:46
问题 I'm using Antlr in a simple Kotlin/Gradle project, and while my Gradle build is generating Antlr sources, they are not available for importing into the project. As you can see (on the left), the classes (Lexer/Parser, etc.) are being generated. I have also configured this generated-src/antlr/main directory as a Source Root . Most questions I see list this as a solution, but I've already done it. The issue persists after multiple rebuilds (both in IDEA and on the CLI), and following all the

Unable to add resources to final jar for maven project in Intellij

天涯浪子 提交于 2021-02-08 11:46:37
问题 I am unable to add images from my resources directory (which is marked as resources root) to the final jar that I want t generate. I have tried building a jar using File -> Project Structure -> Project Settings -> Artifacts -> Click green plus sign -> Jar -> From modules with dependencies. But failed. I have also tried building a jar from the Maven project window in Intellij. Which failed as well. Here is my pom.xml file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven

Intellij Ultimate 2016.2 stuck on maven build after project import

孤人 提交于 2021-02-08 10:30:32
问题 After importing the maven project in Intellij. It started a background task of indexing and building. Build task is not getting complete. I checked the Intellij logs and found a Runtime exception. This is happening only in Intellij background tasks. #org.jetbrains.idea.maven - Cannot reconnect. java.lang.RuntimeException: Cannot reconnect. at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:111) at org.jetbrains.idea.maven.server.MavenIndexerWrapper

IntelliJ Multiline edit at end of each line?

蓝咒 提交于 2021-02-08 09:23:11
问题 In IntelliJ we can do multiline edit at the same position on each line with Alt + Shift + Insert. Can we do multiline edit at the end of each line when the length of each line is different? A usage scenario is for editing semicolon at the end of each line. Thanks. 回答1: This is possible now. Do a multi-line edit starting an any arbitrary column as normal, then press the "END" key and the insertion points will move to the end of each line. Also supported are the HOME, and CTRL + left or right