How to get PyCharm to format a JSON file
Ah, it doesn’t auto-format it. If I paste in non-formatted JSON, it stays non-formatted. But if I press option+cmd+L on Mac, Ctrl+Alt+L on windows, it formats it nicely.
Ah, it doesn’t auto-format it. If I paste in non-formatted JSON, it stays non-formatted. But if I press option+cmd+L on Mac, Ctrl+Alt+L on windows, it formats it nicely.
With the latest Scala plugin build, there is an API which can be used to write your own plugin to support your macros: http://blog.jetbrains.com/scala/2015/10/14/intellij-api-to-build-scala-macros-support/ Now, everyone can use this API to make their macros more friendly to their favorite IDE. To do that, you have to implement SyntheticMembersInjector, and register it in the plugin.xml file: … Read more
This is a known bug: https://youtrack.jetbrains.com/issue/IDEA-102693 There is zip file with a patch attached to the bug, and as far as I see it will soon be included as a official patch for version 14.1.
From IntelliJ’s preferences/settings: Select Editor > Inspections Expand Java > Abstraction issues Uncheck ‘Optional’ used as field or parameter type
Create separate rows for the different method visibilities in the Arrangement part of the Code Style.
First it should be noted, that the message is issued not by java compiler (javac), but by IntelliJ IDEA. You can see javac messages in “Messages Build” window when you actually launch a build process. What you see in editor window is messages generated by IDEA itself and they could differ. The error message is … Read more
(22-Aug-2022 updated) The hints from git blame are also available in the latest IntelliJ IDEA. ================== (For CodeLens function references feature) Now it’s a built-in feature after version IntelliJ IDEA 2020.1. You can enable it from: Ref: https://blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-beta2/
If you started IntelliJ through “JetBrains Toolbox”, then in order to reload the environment variables you need to close them both (IntelliJ & Toolbox), start the toolbox, and then start IntelliJ via the toolbox.
This answer is almost the same as that of Mindas, but the details were enough for me to ignore his suggestion the first time around, and bother the Intellij support guys/girls (thanks Serge and Eugene): Open the ‘Breakpoints’ window and go to the ‘Exception Breakpoints’ tab Highlight and activate the ‘Any exception’ breakpoint Activate only … Read more