RefactorInsight: Enhancing IDE Representation of Changes in Git with Refactorings Information

Zarina Kurbatova, Vladimir Kovalenko, Ioana Savu, Bob Brockbernd, Dan Andreescu +4 more
8/25/2021
cs.SE

Official code: JetBrains-Research/RefactorInsight (109 stars, Java, MIT, last commit 2024-01-03).

Abstract

Inspection of code changes is a time-consuming task that constitutes a big part of everyday work of software engineers. Existing IDEs provide little information about the semantics of code changes within the file editor view.

Show full abstract

Therefore developers have to track changes across multiple files, which is a hard task with large codebases. In this paper, we present RefactorInsight, a plugin for IntelliJ IDEA that introduces a smart diff for code changes in Java and Kotlin where refactorings are auto-folded and provided with their description, thus allowing users to focus on changes that modify the code behavior like bug fixes and new features. RefactorInsight supports three usage scenarios: viewing smart diffs with auto-folded refactorings and hints, inspecting refactorings in pull requests and in any specific commit in the project change history, and exploring the refactoring history of methods and classes. The evaluation shows that commit processing time is acceptable: on median it is less than 0.2 seconds, which delay does not disrupt developers' IDE workflows. RefactorInsight is available at https://github.com/JetBrains-Research/RefactorInsight. The demonstration video is available at https://youtu.be/-6L2AKQ66nA.

View on arXivView PDF

Code Implementations(1)

MIT

An IntelliJ IDEA plugin that detects refactorings in Git commits

10912Java, ShellJun 30, 20202 years agoMIT
code-diffintellijidea-pluginjetbrains-pluginrefactoringminerrefactorings+1 more

Similar Papers

Cite this paper

@article{kurbatova2021refactorinsight,
  title  = {RefactorInsight: Enhancing IDE Representation of Changes in Git with Refactorings Information},
  author = {Zarina Kurbatova and Vladimir Kovalenko and Ioana Savu and Bob Brockbernd and Dan Andreescu and Matei Anton and Roman Venediktov and Elena Tikhomirova and Timofey Bryksin},
  year   = {2021},
  eprint = {2108.11202},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.11202}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.11202.svg)](https://codeofpaper.com/paper/2108.11202)

Discussion