智能粘贴自动修复代码粘贴后的问题,提升开发效率。
Smart Paste: Automatically Fixing Copy/Paste for Google Developers
- 基于深度学习迭代优化,提供粘贴后代码修改建议。
- 上线后采纳率达45%,贡献公司1%以上代码量。
- 适合关注AI辅助开发、IDE智能化的工程师与研究者。
在谷歌内部软件开发中,代码粘贴次数是手动输入的四倍,且常需后续编辑,包括格式调整、重命名及跨语言转换等。本文展示如何迭代开发并规模化部署Smart Paste这一集成开发环境功能,为粘贴后代码提供智能修改建议。该实践为AI开发者提供了涵盖用户体验、系统集成与模型能力的完整方法论。自上线以来,该功能获得广泛好评,采纳率达45%;在企业级规模下,被接受的建议已占公司总代码量的1%以上。
原文摘要 · Abstract (English)
Manually editing pasted code is a long-standing developer pain point. In internal software development at Google, we observe that code is pasted 4 times more often than it is manually typed. These paste actions frequently require follow-up edits, ranging from simple reformatting and renaming to more complex style adjustments and cross-language translations. Prior work has shown deep learning can be used to predict these edits. In this work, we show how to iteratively develop and scale Smart Paste, an IDE feature for post-paste edit suggestions, to Google's development environment. This experience can serve as a guide for AI practitioners on a holistic approach to feature development, covering user experience, system integration, and model capabilities. Since deployment, Smart Paste has had overwhelmingly positive feedback with a 45% acceptance rate. At Google's enterprise scale, these accepted suggestions account substantially for over 1% of all code written company-wide.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。