Don’t be afraid to apply changes, because you can always roll them back!Īnother thing that makes some developers think IntelliJ IDEA understands their code as well as they do (or better), is detection of code duplicates. This feature is available as a separate refactoring, which you can call on any project scope, and as a part of any other refactoring, such as introduce constant, variable, method, etc. Just apply the refactoring and IntelliJ IDEA willmake appropriate changes to your code to remove duplicates. Try it just once-and you’ll wonder how you’ve lived without it all along.
What could be simpler than the Rename refactoring, you ask? Well, IntelliJ IDEA offers incredible additional support for this refactoring. When you use it, the IDE offers to apply the corresponding changes to getters and setters, variables, constants, test classes and methods, implementation classes, etc. This can be a huge time-saver and a lot of help in keeping your code cleanĪnother useful feature you will rarely find in other IDEs is type migration. Have you ever used some type for a long time and then decided to change it? I’m sure you have. IntelliJ IDEA takes care of automatically applying changes to method return types, local variables, parameters and other data-flow-dependent type entries across the entire project. (if.else, try.catch, for, synchronized, etc.You can even switch between arrays and collections, and the IDE will make all the changes for you. (Getters, Setters, Constructors, hashCode/equals, toString) Show descriptions of error or warning at caret Parameter info (within method call arguments) Smart code completion (filters the list of methods and variables by expected type) Usage Editing Linux, Windowsīasic code completion (the name of any class, method or variable) Includes keymaps for popular JetBrains products like IntelliJ Ultimate, WebStorm, P圜harm, PHP Storm, etc. Port of IntelliJ IDEA key bindings for VS Code. IntelliJ IDEA Key Bindings for Visual Studio Code