I'm really fond of IntelliJ to do all programming stuff, however what I do feel it could derive from VS Code is the file change viewer (Left VS Code, IntelliJ right)
So far, I've been using code for just viewing diffs before I commit, yet I'd like to not leave IntelliJ at all if I could get this exact customization in or use some plugins that give me this. (The diff viewer in IntelliJ is the best, however it's not very accessible like in code)
Is there any way to do this?
I'm going to address each point one by one:
Unfortunately, IntelliJ doesn't provide a view option to split changes into two groups (staged and unstaged files). At most, you can group files by directory or module by clicking on the eye icon above the changes list, but this is not what you're looking for.
If you want to open the diff viewer on a file, just double-click on the file from the changes list. You don't need to do right-click
> git
> diff
. Alternatively, you can set up a hotkey to show the differences for the current file. Just go to File
> Settings
> Keymap
and either search for Compare with the Same Repository Version
, or keep browsing to Version Control Systems
> Git
> Compare with the Same Repository Version
. Then, assign a hotkey.
If you need to stage a file, just check the checkbox on the left of the file from the changes list. You don't necessarily need to do right-click
> git
> add
. Alternatively, you can use the hotkey CTRL
+ ALT
+ A
to stage the current file, and even though it won't be shown as checked in the changes list, if you run git status
you can see that the file is actually staged.