The ‘History Up to Here’ action can now show the full history. The VCS Log lets you navigate to the previous/next selected commit.
Support for Git submodules is here: update your project, commit changes, view diffs, and resolve conflicts. Thanks to initial support for GitHub Pull Requests, now you can view PRs in your IDE.
Syntax highlighting and code completion are now available for EditorConfig files. Go to the ‘Formatter Control’ tab in Preferences / Settings | Editor | Code Style. You can create a scope to disable code formatting from being done on specific files and folders. The IDE highlights the first and all subsequent TODO comment lines in the editor and displays them in the TODO tool window.Ī new indentation status bar displays the size of the indent in the current file. The IDE now identifies situations where a suppressed inspection no longer addresses any warnings in the associated method body, class, or statement. Java Stream API improvements: redundant sorted calls that are made before the subsequent min call are now detected.Ī new data-flow-based inspection detects situations where the first condition is unnecessary because it’s already covered by a second condition. The IDE can now spot duplicates in more complicated cases, and it does this faster as well. 10.IntelliJ IDEA supports the upcoming Java 12, and you can already preview the Raw String Literals (JEP 326) in the IDE. And if we want our program just to run until it encounters the next breakpoint, then Run – Debugging Actions – Resume Program ( F9) does just that. If we want our program to run to the line where our cursor is, then Run – Debugging Actions – Run to Cursor ( Alt + F9) accomplishes this. That's what Run – Debugging Actions – Step Out ( Shift + F8) does. When debugging, we may want to run our code until the current method is finished. Alternatively, we can dive into the method at the current line with Run – Debugging Actions – Step Into ( F7). So if that line is a method, we'll execute that entire method in one fell swoop. When our code hits a breakpoint during debugging, we can step over the current line with Run – Debugging Actions – Step Over ( F8). We can toggle a breakpoint at the current line with Run – Toggle Breakpoint – Line Breakpoint ( Ctrl + F8 / Cmd + F8). We view the current breakpoints with Run – View Breakpoints ( Ctrl + Shift + F8 / Shift + Cmd + F8). We can still save all files manually with File – Save all ( Ctrl + S / Cmd + S). IntelliJ IDEA automatically saves our code, for instance, before running it.
That is Ctrl + Shift + / in Windows and Alt + Cmd + / in macOS. We can even comment out a whole block of code with Code – Comment with Block Comment. We can use Code – Surround with ( Ctrl + Alt + T / Alt + Cmd +T) to put control structures around our code, such as an if statement. And with Code – Generate ( Alt + Insert / Cmd + N), we can create common methods like getters, setters, or toString(). Code – Code Completion – Complete Current Statement ( Ctrl + Shift + Enter / Shift + Cmd + Enter) finishes our current line.Ĭode – Override Methods ( Ctrl + O) lets us pick inherited methods to overwrite. We may need to type a closing parenthesis and have to put a semicolon at the end. This function also automatically launches after a brief delay in the default IntelliJ IDEA configuration. When we start to type the name of variables, methods, or types, IntelliJ IDEA helps us finish those names with Code – Code Completion – Basic ( Ctrl + Space). Once we arrive at the right file and the right place, we can start editing our code.