intellij-idea

How do I stop PyCharm from autocompleting class methods?

我怕爱的太早我们不能终老 提交于 2021-01-27 02:44:41
问题 When I type: def method( , PyCharm jumps in with def method(self): . I would like to disable this behaviour. 回答1: The option is located at: Settings > Editor > Smart Keys > Insert Self... EDIT: As of pycharm 2017.1 it's under File -> Settings -> Editor -> General -> Smart Keys 回答2: In PyCharm 2017.1 File -> Settings -> Editor -> General -> Smart Keys -> "Insert 'self' when defining a method" 回答3: Go to File > Settings (or Ctrl + Alt + S ) > [IDE Settings] > Editor > Code Completion . The

How do I disable 'Convert Java to Kotlin upon paste' in IntelliJ IDEA?

僤鯓⒐⒋嵵緔 提交于 2021-01-26 22:33:40
问题 When IntelliJ IDEA detects I'm pasting a piece of copied Java code into a Kotlin file, it offers me to convert the pasted Java to Kotlin. This dialog contains a 'Do no ask again next time checkbox'. I checked this box and selected 'Yes', but now I want to undo my default choice. How do I do this? I've looked and searched in IntelliJ IDEA's preferences, but haven't found the respective checkbox. Is it actually in the settings, or can I somehow reset default checkbox selections? 回答1:

What means when method is italic in IntelliJ IDEA?

落花浮王杯 提交于 2021-01-26 20:36:48
问题 By default, IntelliJ IDEA shows some of the methods as italic when we call them: Example: Authentication auth = SecurityContextHolder.getContext().getAuthentication(); getContext() is italic, but getAuthentication() isn't, what does it mean? 回答1: A method written in italic indicate that this method is a static method. 来源: https://stackoverflow.com/questions/33894818/what-means-when-method-is-italic-in-intellij-idea

What means when method is italic in IntelliJ IDEA?

风流意气都作罢 提交于 2021-01-26 20:36:40
问题 By default, IntelliJ IDEA shows some of the methods as italic when we call them: Example: Authentication auth = SecurityContextHolder.getContext().getAuthentication(); getContext() is italic, but getAuthentication() isn't, what does it mean? 回答1: A method written in italic indicate that this method is a static method. 来源: https://stackoverflow.com/questions/33894818/what-means-when-method-is-italic-in-intellij-idea

Error:(3, 26) java: package javafx.application does not exist

二次信任 提交于 2021-01-26 03:08:28
问题 I have a new pc, I have installed inteliJ with JDK and JRE 9.0.1. I also installed SceneBuilder 9.0.1. I have copied the project that I had on old pc and when I run it I get this error: Error:(3, 26) java: package javafx.application does not exist. Do I need to install something else that contains this package? Thank you. 回答1: The JavaFX package is not included in JDK 9 and later. You need to install JDK 8, or you can add the JavaFX package separately, for example, from JDK 8 ( jfxrt.jar ).

Java - ServiceLoader - Intellij cannot find implementation class files

匆匆过客 提交于 2021-01-24 12:37:32
问题 Intro I am trying to create multiple services which fuzz the input (for testing purposes. I am using the concept of dependency injection using java.util.ServiceLoader<T> feature. I am using IntelliJ for this project. Github Project Link: https://github.com/ghoshabhi/java-service-loader Problem I have created a META-INF/services directory with one file within it: htmlfuzzing.spi.HtmlFuzzer mentioning the path to my implementation class ( htmlfuzzing.TagReplacer ). I was trying to create a

Java - ServiceLoader - Intellij cannot find implementation class files

冷暖自知 提交于 2021-01-24 12:36:59
问题 Intro I am trying to create multiple services which fuzz the input (for testing purposes. I am using the concept of dependency injection using java.util.ServiceLoader<T> feature. I am using IntelliJ for this project. Github Project Link: https://github.com/ghoshabhi/java-service-loader Problem I have created a META-INF/services directory with one file within it: htmlfuzzing.spi.HtmlFuzzer mentioning the path to my implementation class ( htmlfuzzing.TagReplacer ). I was trying to create a

Pushing into multiple remote repositories simultanously in IntelliJ

与世无争的帅哥 提交于 2021-01-21 12:36:21
问题 I'm using git within the IntelliJIDEA IDE. I have two remote repositories to which I would like to push my commits. How do I push to both remotes simultaneously? 回答1: Here is a good example it worked for me ... For example, here are the remotes specified in my .git/config file: [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = /Users/loki/sandbox/git/parent [remote "github"] fetch = +refs/heads/*:refs/remotes/origin/* url = git@github.com:jbklikh/git_test.git ... https:/

Intellij Idea find all deprecated usages in the project

核能气质少年 提交于 2021-01-21 12:10:41
问题 I upgrade a language level in IntelliJ Idea in a quite big project and I would like to find all deprecated method usages left - I look for all the striketrough occurrences. I have found a similar question for PhpStorm where is suggested an approach: Code → Run Inspection by Name... → Enter inspection name: deprecated This is not available in the IntelliJ Idea IDE. I work with 2018.3.3 version. Is there a comfortable way to search for all the occurrences? 回答1: The action you are looking for is

Intellij Insert File Template Header

纵然是瞬间 提交于 2021-01-21 07:58:11
问题 When you create a new java class in Intellij a file header is automatically inserted (based on "File Templates" options). Is there a way to insert that same template into an existing java source file? I was hoping there was a way to use my template definition on existing code without doing a cut/paste all over the place. The template makes use of macro expansion and I hope to be able to keep that. There is a similar function in eclipse called "Generate Element Comment" that would handle this