GithubHelp home page GithubHelp logo

jansorg / copilot-completion-shortcut Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 68 KB

Alternative shortcut for GitHub Copilot in JetBrains IDEs

License: BSD 3-Clause "New" or "Revised" License

Kotlin 100.00%

copilot-completion-shortcut's Introduction

Alternative Shortcut for GitHub Copilot

Make TAB insert the completion popup item instead of GitHub Copilot inlays, if both are visible at the same time.

With setting Show completions side-by-side enabled and using the TAB shortcut, the GitHub Copilot plugin prefers its own inlay completions over the IDE's completions.

This plugin enforces that TAB is inserting the selected completion of the IDE's popup menu instead. But if you'd like to insert the GitHub Copilot completion, you can use the newly added SHIFT+TAB shortcut.

If you want to use something else than SHIFT+TAB, then you add your own shortcut at Settings > Keymap > Plugins > Copilot Shortcut > Copilot: Apply completion to editor (alternative shortcut).

With This Plugin

TAB executes the IDE's "Replace with selected completion item" instead of "Apply GitHub Copilot inlays".

IDE Completion Popup Copilot Inlays Completion Popup + Copilot Inlays
Replace with completion popup item TAB TAB
Insert Copilot inlays TAB SHIFT + TAB

Without This Plugin

TAB executes "Apply GitHub Copilot inlays" instead of the IDE's "Replace with selected completion item".

IDE Completion Popup Copilot Inlays Completion Popup + Copilot Inlays
Replace with completion popup item TAB not possible
Insert Copilot inlays TAB TAB

copilot-completion-shortcut's People

Contributors

jansorg avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.