Clone-Writer: An effective editor for developing code by using code clones

Muhammad Hammad*, Önder Babur, Hamid Abdul Basit, Mark van den Brand

*Corresponding author for this work

Research output: Contribution to journalArticleAcademicpeer-review

1 Citation (Scopus)

Abstract

“Code completion” is an important feature of code editors. Such editors usually provide recommendations in terms of next likely code token(s) of fixed length on the basis of code written so far. Code clones (similar code fragments), which play an important role in rapid development, are traditionally neglected as part of code completion. To facilitate code clone reuse, we propose an automated software development tool, called Clone-Writer. The tool helps develop code swiftly by recommending code clones on the basis of code written so far. Moreover, developers can perform code clone search based on a search query written either as source code terms, or as natural language. The tool also contains different visualization features supporting code completion. We have evaluated our tool by considering the classification framework of visualization methods along with user goals and information needs.

Original languageEnglish
Article number100323
JournalSoftware Impacts
Volume13
DOIs
Publication statusPublished - Aug 2022

Keywords

  • Automated tool
  • Code clone
  • Code completion
  • Code editor

Fingerprint

Dive into the research topics of 'Clone-Writer: An effective editor for developing code by using code clones'. Together they form a unique fingerprint.

Cite this