intellij-idea

Adding class/jar file to IntelliJ IDEA

£可爱£侵袭症+ 提交于 2021-01-07 03:06:52
问题 Is there any way to add .class/.jar file to InelliJ IDEA, so that It will be added to every project created. I tried Adding .class to JDK lib/ext directory Adding it to IntelliJ lib directory 回答1: You can create a new library in File -> Project Structure -> Global Libraries. Then add your classes/jars to that library. This library will NOT be automatically added to every project you create. Because, this may not be desired in many cases. You have to add the library to projects manually. You

IntelliJ IDEA: Why is readLine() expecting two user inputs instead of one using Kotlin?

荒凉一梦 提交于 2021-01-07 02:57:27
问题 I wrote a simple program that takes the user's input from the console and then prints it. But when the user enters the input, it requests a second user input and only reads the second input. Code: fun main(args: Array<String>) { print("Enter text: ") val stringInput = readLine()!! println("Readed text: $stringInput") } Console: > Task :MainKt.main() Enter text: FirstInput SecondInput Disconnected from the target VM, address: 'localhost:37282', transport: 'socket' Connected to the target VM,

IntelliJ IDEA: Why is readLine() expecting two user inputs instead of one using Kotlin?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-07 02:56:24
问题 I wrote a simple program that takes the user's input from the console and then prints it. But when the user enters the input, it requests a second user input and only reads the second input. Code: fun main(args: Array<String>) { print("Enter text: ") val stringInput = readLine()!! println("Readed text: $stringInput") } Console: > Task :MainKt.main() Enter text: FirstInput SecondInput Disconnected from the target VM, address: 'localhost:37282', transport: 'socket' Connected to the target VM,

Enabling ssl debug for java in intellij

限于喜欢 提交于 2021-01-03 03:30:26
问题 Following on from my problem here previous issue trying to send java mail via tls/ssl i am now trying to add ssl debugging in Intellij. In the oracle article it gives an example java -Djavax.net.debug=all \ -Djavax.net.ssl.trustStore=trustStore SSLSocketClientWithClientAuth bongos 2001 /index.html How do i configure my environment for a standalone application which runs via main() method? 回答1: All you need to do is edit your Run Configuration. Run -> Edit Configurations And then under the VM

Disable pop-ups in IntelliJ

故事扮演 提交于 2021-01-02 05:26:16
问题 How can I disable pop-ups from IntelliJ? I have several projects set up and every time I change, it informs me that it discovered VCS roots (I know, I don't want to set up) and Android project (wrongly). I have to switch between these often, these pop-ups are annoying. Is there a setting to disable them? 回答1: It is very easy. First bring up the Event log window: Press the Settings button: And from here you can disable the balloon notifications completely or per group: 来源: https:/

Intellij - how to make a plugin that can perform IDE actions via a CLI or web service?

亡梦爱人 提交于 2021-01-01 04:12:27
问题 I need some help getting started making a specific IntelliJ plugin. I want to make an IntelliJ plugin that makes it so you can launch intelliJ actions from CLI (or from a web service if it's easier). For example, I'm done building my project with a gradle script... but i want to get it ready in intelliJ too. Right now I have to do this manually with a point-and-clicks. Instead I want to have this the ability to externally trigger some IntelliJ commands. In my example I would want to fire off

Intellij - how to make a plugin that can perform IDE actions via a CLI or web service?

隐身守侯 提交于 2021-01-01 04:10:46
问题 I need some help getting started making a specific IntelliJ plugin. I want to make an IntelliJ plugin that makes it so you can launch intelliJ actions from CLI (or from a web service if it's easier). For example, I'm done building my project with a gradle script... but i want to get it ready in intelliJ too. Right now I have to do this manually with a point-and-clicks. Instead I want to have this the ability to externally trigger some IntelliJ commands. In my example I would want to fire off

Run button is greyed out - intellij

烈酒焚心 提交于 2021-01-01 02:44:21
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited

Run button is greyed out - intellij

爷,独闯天下 提交于 2021-01-01 02:43:44
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited

Run button is greyed out - intellij

倖福魔咒の 提交于 2021-01-01 02:42:06
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited