Is there analog of vim-gitgutter for IntelliJ IDEA?
You can see in the screenshot how vim-gitgutter marks changed/added/removed lines using symbols '~', '+' and '-'. I would like to get something like that in IDEA.
Thanks!
IntelliJ IDEA allows you to review all changes made to the project sources that match the specified filters. For distributed version control systems, such as Git and Mercurial, you can view project history in the Log tab of the Version Control tool window Alt+9 (see Investigate changes in Git repository).
You can use Find Actions which is ⌘⇧A (macOS), or Ctrl+Shift+A (Windows/Linux) and then search for 'Git Staging' to enable Git Staging instead of IntelliJ IDEA Changelists.
If you press Ctrl+K , the entire active changelist will be selected. You can also select files under the Unversioned Files node — IntelliJ IDEA will stage and commit these files in one step. If you want to append local changes to the latest commit instead of creating a separate commit, select the Amend option.
You need to set up version control for your project. You can do that in "File" -> "Settings..." -> "Version control" -> then set "VCS" to "Git" (or any other supported VCS). Once you have done that, the editor shows color bands for changed lines (green for added, blue for changed, red for removed). See also the IntelliJ manual page.
If the gutter marks are missing this could be caused by plugins. I was able to get them back by enabling in settings (in Webstorm):
Editor > General > Gutter (bottom) > Highlight modified lines in gutter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With