How to make Windows key the IntelliJ IDEA Command/Meta key under Windows?

Here’s a workaround that works partly. In IDEA do the following: Help -> Edit Custom Properties… In the file that opens, add this on a new line: keymap.windows.as.meta=true Choose your Mac keymap under File -> Settings… -> Keymap. For example, “Mac OS X 10.5+”. If you use a Windows keyboard and you want the same … Read more

Find and replace regex in Intellij, but keep some of the matched regex?

Use the following regex replacement: Find: myObject\[(.*?)\] Replace: myObject.get($1) If the index is an integer, you may replace (.*?) with (\d+). The pair of unescaped parentheses creates a capturing group that we may reference from the replacement pattern using $ + Group ID. $1 will insert the index into the replacement result.

Fernflower and IntelliJ IDEA’s java-decompiler

Try to invoke main class org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler manually java -cp java-decompiler.jar org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler myclassfile.class . Also you can find more about internal usage of Fernflower inside IDEA by query in source code https://github.com/JetBrains/intellij-community/search?utf8=%E2%9C%93&q=Fernflower

IntelliJ suppress unused warning for API methods

@Sebastian’s suggestion to have your class implement an interface is probably the best way to solve this issue from a good design standpoint. But when that is impractical, there is an alternative… The “Unused declaration” inspection allows you to configure “entry points” (i.e. a public external API) to ignore. As part of that you can … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)