Home / Companies / Sourcegraph / Blog / Post Details
Content Deep Dive

Enter flow state with auto-edit

Blog post from Sourcegraph

Post Details
Company
Date Published
Author
Ado Kukic
Word Count
981
Language
English
Hacker News Points
-
Summary

Auto-edit is a novel integration introduced for Visual Studio Code (VS Code) that enhances traditional autocomplete by offering context-aware code suggestions, allowing developers to make more comprehensive and automatic edits to their codebase. Unlike conventional autocomplete, which only provides suggestions after the cursor's current position, auto-edit can propose modifications before and after the cursor, as well as suggest deletions and changes across multiple files, based on recent edits and context. This feature is designed to streamline the coding process in complex, growing codebases by reducing the effort spent on editing and maintaining code. Auto-edit is currently being rolled out experimentally, requiring at least one character change to become active, and while it may not cover all complex refactoring scenarios, it aims to offer a superior autocompletion experience by integrating recent user edits and diagnostics. Users can start using auto-edit if they are Cody Pro users or Enterprise customers with the Sourcegraph Cody Gateway, and feedback is encouraged to refine its capabilities further.